Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Public Member Functions | |
__init__ (self) | |
SetDoubleParam (self, param, value) | |
SetIntegerParam (self, param, value) | |
GetDoubleParam (self, param) | |
GetIntegerParam (self, param) | |
Static Public Attributes | |
RELATIVE_MIP_GAP = _pywraplp.MPSolverParameters_RELATIVE_MIP_GAP | |
PRIMAL_TOLERANCE = _pywraplp.MPSolverParameters_PRIMAL_TOLERANCE | |
DUAL_TOLERANCE = _pywraplp.MPSolverParameters_DUAL_TOLERANCE | |
PRESOLVE = _pywraplp.MPSolverParameters_PRESOLVE | |
LP_ALGORITHM = _pywraplp.MPSolverParameters_LP_ALGORITHM | |
INCREMENTALITY = _pywraplp.MPSolverParameters_INCREMENTALITY | |
SCALING = _pywraplp.MPSolverParameters_SCALING | |
PRESOLVE_OFF = _pywraplp.MPSolverParameters_PRESOLVE_OFF | |
PRESOLVE_ON = _pywraplp.MPSolverParameters_PRESOLVE_ON | |
DUAL = _pywraplp.MPSolverParameters_DUAL | |
PRIMAL = _pywraplp.MPSolverParameters_PRIMAL | |
BARRIER = _pywraplp.MPSolverParameters_BARRIER | |
INCREMENTALITY_OFF = _pywraplp.MPSolverParameters_INCREMENTALITY_OFF | |
INCREMENTALITY_ON = _pywraplp.MPSolverParameters_INCREMENTALITY_ON | |
SCALING_OFF = _pywraplp.MPSolverParameters_SCALING_OFF | |
SCALING_ON = _pywraplp.MPSolverParameters_SCALING_ON | |
Properties | |
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
This class stores parameter settings for LP and MIP solvers. Some parameters are marked as advanced: do not change their values unless you know what you are doing! For developers: how to add a new parameter: - Add the new Foo parameter in the DoubleParam or IntegerParam enum. - If it is a categorical param, add a FooValues enum. - Decide if the wrapper should define a default value for it: yes if it controls the properties of the solution (example: tolerances) or if it consistently improves performance, no otherwise. If yes, define kDefaultFoo. - Add a foo_value_ member and, if no default value is defined, a foo_is_default_ member. - Add code to handle Foo in Set...Param, Reset...Param, Get...Param, Reset and the constructor. - In class MPSolverInterface, add a virtual method SetFoo, add it to SetCommonParameters or SetMIPParameters, and implement it for each solver. Sometimes, parameters need to be implemented differently, see for example the INCREMENTALITY implementation. - Add a test in linear_solver_test.cc. TODO(user): store the parameter values in a protocol buffer instead. We need to figure out how to deal with the subtleties of the default values.
Definition at line 868 of file pywraplp.py.
ortools.linear_solver.pywraplp.MPSolverParameters.__init__ | ( | self | ) |
The constructor sets all parameters to their default value.
Definition at line 939 of file pywraplp.py.
ortools.linear_solver.pywraplp.MPSolverParameters.GetDoubleParam | ( | self, | |
param ) |
Returns the value of a double parameter.
Definition at line 951 of file pywraplp.py.
ortools.linear_solver.pywraplp.MPSolverParameters.GetIntegerParam | ( | self, | |
param ) |
Returns the value of an integer parameter.
Definition at line 955 of file pywraplp.py.
ortools.linear_solver.pywraplp.MPSolverParameters.SetDoubleParam | ( | self, | |
param, | |||
value ) |
Sets a double parameter to a specific value.
Definition at line 943 of file pywraplp.py.
ortools.linear_solver.pywraplp.MPSolverParameters.SetIntegerParam | ( | self, | |
param, | |||
value ) |
Sets a integer parameter to a specific value.
Definition at line 947 of file pywraplp.py.
|
static |
Definition at line 925 of file pywraplp.py.
|
static |
Definition at line 921 of file pywraplp.py.
|
static |
Definition at line 907 of file pywraplp.py.
|
static |
Definition at line 913 of file pywraplp.py.
|
static |
Definition at line 927 of file pywraplp.py.
|
static |
Definition at line 929 of file pywraplp.py.
|
static |
Definition at line 911 of file pywraplp.py.
|
static |
Definition at line 909 of file pywraplp.py.
|
static |
Definition at line 917 of file pywraplp.py.
|
static |
Definition at line 919 of file pywraplp.py.
|
static |
Definition at line 923 of file pywraplp.py.
|
static |
Definition at line 900 of file pywraplp.py.
|
static |
Definition at line 898 of file pywraplp.py.
|
static |
Definition at line 915 of file pywraplp.py.
|
static |
Definition at line 934 of file pywraplp.py.
|
static |
Definition at line 936 of file pywraplp.py.
|
static |
Definition at line 896 of file pywraplp.py.