Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
// doxy/ or-tools/ src/ linear_solver/ |
#include <linear_solver.h>
Public Types | |
enum | DoubleParam { RELATIVE_MIP_GAP = 0, PRIMAL_TOLERANCE = 1, DUAL_TOLERANCE = 2 } |
Enumeration of parameters that take continuous values. More... | |
enum | IntegerParam { PRESOLVE = 1000, LP_ALGORITHM = 1001, INCREMENTALITY = 1002 } |
Enumeration of parameters that take integer or categorical values. More... | |
enum | PresolveValues { PRESOLVE_OFF = 0, PRESOLVE_ON = 1 } |
For each categorical parameter, enumeration of possible values. More... | |
enum | LpAlgorithmValues { DUAL = 10, PRIMAL = 11, BARRIER = 12 } |
enum | IncrementalityValues { INCREMENTALITY_OFF = 0, INCREMENTALITY_ON = 1 } |
Public Member Functions | |
MPSolverParameters () | |
The constructor sets all parameters to their default value. | |
void | SetDoubleParam (MPSolverParameters::DoubleParam param, double value) |
void | SetIntegerParam (MPSolverParameters::IntegerParam param, int value) |
void | ResetDoubleParam (MPSolverParameters::DoubleParam param) |
void | ResetIntegerParam (MPSolverParameters::IntegerParam param) |
void | Reset () |
Sets all parameters to their default value. | |
double | GetDoubleParam (MPSolverParameters::DoubleParam param) const |
int | GetIntegerParam (MPSolverParameters::IntegerParam param) const |
Static Public Attributes | |
static const double | kDefaultDoubleParamValue = -1.0 |
static const int | kDefaultIntegerParamValue = -1 |
static const double | kUnknownDoubleParamValue = -2.0 |
static const int | kUnknownIntegerParamValue = -2 |
static const double | kDefaultRelativeMipGap = 1e-4 |
MPSolverParameters. | |
static const double | kDefaultPrimalTolerance = 1e-7 |
For the primal and dual tolerances, choose the same default as CLP and GLPK. | |
static const double | kDefaultDualTolerance = 1e-7 |
static const PresolveValues | kDefaultPresolve |
static const IncrementalityValues | kDefaultIncrementality |
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:
Definition at line 733 of file linear_solver.h.
Enumeration of parameters that take continuous values.
Definition at line 736 of file linear_solver.h.
Enumeration of parameters that take integer or categorical values.
PRESOLVE | Advanced usage: presolve mode. |
LP_ALGORITHM | Algorithm to solve linear programs. |
INCREMENTALITY | Advanced usage: incrementality from one solve to the next. |
Definition at line 749 of file linear_solver.h.
For each categorical parameter, enumeration of possible values.
Definition at line 759 of file linear_solver.h.
Definition at line 764 of file linear_solver.h.
INCREMENTALITY_OFF | Start solve from scratch. |
INCREMENTALITY_ON |
Reuse results from previous solve as much as the underlying solver allows.
|
Definition at line 770 of file linear_solver.h.
operations_research::MPSolverParameters::MPSolverParameters | ( | ) |
The constructor sets all parameters to their default value.
Definition at line 937 of file linear_solver.cc.
void operations_research::MPSolverParameters::SetDoubleParam | ( | MPSolverParameters::DoubleParam | param, | |
double | value | |||
) |
Sets a parameter to a specific value.
Definition at line 946 of file linear_solver.cc.
void operations_research::MPSolverParameters::SetIntegerParam | ( | MPSolverParameters::IntegerParam | param, | |
int | value | |||
) |
Definition at line 967 of file linear_solver.cc.
void operations_research::MPSolverParameters::ResetDoubleParam | ( | MPSolverParameters::DoubleParam | param | ) |
Sets a parameter to its default value (default value defined in MPSolverParameters if it exists, otherwise the default value defined in the underlying solver).
Definition at line 1001 of file linear_solver.cc.
void operations_research::MPSolverParameters::ResetIntegerParam | ( | MPSolverParameters::IntegerParam | param | ) |
Definition at line 1022 of file linear_solver.cc.
void operations_research::MPSolverParameters::Reset | ( | ) |
double operations_research::MPSolverParameters::GetDoubleParam | ( | MPSolverParameters::DoubleParam | param | ) | const |
Returns the value of a parameter.
Definition at line 1052 of file linear_solver.cc.
int operations_research::MPSolverParameters::GetIntegerParam | ( | MPSolverParameters::IntegerParam | param | ) | const |
Definition at line 1071 of file linear_solver.cc.
const double operations_research::MPSolverParameters::kDefaultDoubleParamValue = -1.0 [static] |
Placeholder value to indicate that a parameter is set to the default value defined in the wrapper.
Definition at line 781 of file linear_solver.h.
const int operations_research::MPSolverParameters::kDefaultIntegerParamValue = -1 [static] |
Definition at line 782 of file linear_solver.h.
const double operations_research::MPSolverParameters::kUnknownDoubleParamValue = -2.0 [static] |
Placeholder value to indicate that a parameter is unknown.
Definition at line 787 of file linear_solver.h.
const int operations_research::MPSolverParameters::kUnknownIntegerParamValue = -2 [static] |
Definition at line 788 of file linear_solver.h.
const double operations_research::MPSolverParameters::kDefaultRelativeMipGap = 1e-4 [static] |
Default values for parameters. Only parameters that define the properties of the solution returned need to have a default value (that is the same for all solvers). You can also define a default value for performance parameters when you are confident it is a good choice (example: always turn presolve on).
Definition at line 797 of file linear_solver.h.
const double operations_research::MPSolverParameters::kDefaultPrimalTolerance = 1e-7 [static] |
For the primal and dual tolerances, choose the same default as CLP and GLPK.
Definition at line 798 of file linear_solver.h.
const double operations_research::MPSolverParameters::kDefaultDualTolerance = 1e-7 [static] |
Definition at line 799 of file linear_solver.h.
const MPSolverParameters::IncrementalityValues operations_research::MPSolverParameters::kDefaultIncrementality [static] |
Initial value:
Definition at line 801 of file linear_solver.h.