Sets options for CPLEX.
Sets the values for the options dict normally passed to
cplexoptimset .
Inputs are all optional, second argument must be either a string
(fname ) or a dict (ppopt ):
Output is an options dict to pass to cplexoptimset .
Example:
If ppopt['CPLEX_OPT'] = 3 , then after setting the default
CPLEX options, CPLEX_OPTIONS will execute the following user-defined
function to allow option overrides:
opt = cplex_user_options_3(opt, ppopt)
The contents of cplex_user_options_3.py, could be something like:
def cplex_user_options_3(opt, ppopt):
opt = {}
opt['threads'] = 2
opt['simplex']['refactor'] = 1
opt['timelimit'] = 10000
return opt
For details on the available options, see the "Parameters
Reference Manual" section of the CPLEX documentation at: http://publib.boulder.ibm.com/infocenter/cosinfoc/v12r2/
- Parameters:
overrides -
ppopt - PYPOWER options vector, uses the following entries:
See Also:
cplexlp , cplexqp , ppoption.
- Authors:
-
Ray Zimmerman (PSERC Cornell),
Richard Lincoln
|