MPSolverCommonParameters holds advanced usage parameters that apply to any of the solvers we support. All of the fields in this proto can have a value of unspecified. In this case each inner solver will use their own safe defaults. Some values won't be supported by some solvers. The behavior in that case is not defined yet.
More...
|
static pb::MessageParser< MPSolverCommonParameters > | Parser [get] |
|
static pbr::MessageDescriptor | Descriptor [get] |
|
global::OperationsResearch.OptionalDouble | RelativeMipGap [get, set] |
| The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an upper bound of the relative distance to the optimum, and it is defined as:
|
|
global::OperationsResearch.OptionalDouble | PrimalTolerance [get, set] |
| Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability. For SCIP this includes integrality constraints. For Gurobi it does not, you need to set the custom parameter IntFeasTol.
|
|
global::OperationsResearch.OptionalDouble | DualTolerance [get, set] |
| Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced costs in LP solution: reduced costs must all be smaller than this value in the improving direction in order for a model to be declared optimal. Not supported for other solvers.
|
|
global::OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues | LpAlgorithm [get, set] |
| Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
|
|
bool | HasLpAlgorithm [get] |
| Gets whether the "lp_algorithm" field is set.
|
|
global::Google.OrTools.Util.OptionalBoolean | Presolve [get, set] |
| Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
|
|
bool | HasPresolve [get] |
| Gets whether the "presolve" field is set.
|
|
global::Google.OrTools.Util.OptionalBoolean | Scaling [get, set] |
| Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP. Ask or-core-team@ if you want more details.
|
|
bool | HasScaling [get] |
| Gets whether the "scaling" field is set.
|
|
MPSolverCommonParameters holds advanced usage parameters that apply to any of the solvers we support. All of the fields in this proto can have a value of unspecified. In this case each inner solver will use their own safe defaults. Some values won't be supported by some solvers. The behavior in that case is not defined yet.
Definition at line 5466 of file LinearSolver.pb.cs.
◆ MPSolverCommonParameters() [1/2]
OperationsResearch.MPSolverCommonParameters.MPSolverCommonParameters |
( |
| ) |
|
|
inline |
◆ MPSolverCommonParameters() [2/2]
◆ CalculateSize()
int OperationsResearch.MPSolverCommonParameters.CalculateSize |
( |
| ) |
|
|
inline |
◆ ClearLpAlgorithm()
void OperationsResearch.MPSolverCommonParameters.ClearLpAlgorithm |
( |
| ) |
|
|
inline |
◆ ClearPresolve()
void OperationsResearch.MPSolverCommonParameters.ClearPresolve |
( |
| ) |
|
|
inline |
◆ ClearScaling()
void OperationsResearch.MPSolverCommonParameters.ClearScaling |
( |
| ) |
|
|
inline |
◆ Clone()
◆ Equals() [1/2]
◆ Equals() [2/2]
override bool OperationsResearch.MPSolverCommonParameters.Equals |
( |
object | other | ) |
|
|
inline |
◆ GetHashCode()
override int OperationsResearch.MPSolverCommonParameters.GetHashCode |
( |
| ) |
|
|
inline |
◆ MergeFrom() [1/2]
◆ MergeFrom() [2/2]
void OperationsResearch.MPSolverCommonParameters.MergeFrom |
( |
pb.CodedInputStream | input | ) |
|
|
inline |
◆ ToString()
override string OperationsResearch.MPSolverCommonParameters.ToString |
( |
| ) |
|
|
inline |
◆ WriteTo()
void OperationsResearch.MPSolverCommonParameters.WriteTo |
( |
pb.CodedOutputStream | output | ) |
|
|
inline |
◆ DualToleranceFieldNumber
const int OperationsResearch.MPSolverCommonParameters.DualToleranceFieldNumber = 3 |
|
static |
◆ LpAlgorithmFieldNumber
const int OperationsResearch.MPSolverCommonParameters.LpAlgorithmFieldNumber = 4 |
|
static |
◆ PresolveFieldNumber
const int OperationsResearch.MPSolverCommonParameters.PresolveFieldNumber = 5 |
|
static |
◆ PrimalToleranceFieldNumber
const int OperationsResearch.MPSolverCommonParameters.PrimalToleranceFieldNumber = 2 |
|
static |
◆ RelativeMipGapFieldNumber
const int OperationsResearch.MPSolverCommonParameters.RelativeMipGapFieldNumber = 1 |
|
static |
◆ ScalingFieldNumber
const int OperationsResearch.MPSolverCommonParameters.ScalingFieldNumber = 7 |
|
static |
◆ Descriptor
pbr.MessageDescriptor OperationsResearch.MPSolverCommonParameters.Descriptor |
|
staticget |
◆ DualTolerance
global.OperationsResearch.OptionalDouble OperationsResearch.MPSolverCommonParameters.DualTolerance |
|
getset |
Tolerance for dual feasibility. For SCIP and Gurobi this is the feasibility tolerance for reduced costs in LP solution: reduced costs must all be smaller than this value in the improving direction in order for a model to be declared optimal. Not supported for other solvers.
Definition at line 5578 of file LinearSolver.pb.cs.
◆ HasLpAlgorithm
bool OperationsResearch.MPSolverCommonParameters.HasLpAlgorithm |
|
get |
◆ HasPresolve
bool OperationsResearch.MPSolverCommonParameters.HasPresolve |
|
get |
◆ HasScaling
bool OperationsResearch.MPSolverCommonParameters.HasScaling |
|
get |
◆ LpAlgorithm
global.OperationsResearch.MPSolverCommonParameters.Types.LPAlgorithmValues OperationsResearch.MPSolverCommonParameters.LpAlgorithm |
|
getset |
Algorithm to solve linear programs. Ask or-core-team@ if you want to know what this does exactly.
Definition at line 5596 of file LinearSolver.pb.cs.
◆ Parser
◆ Presolve
global.Google.OrTools.Util.OptionalBoolean OperationsResearch.MPSolverCommonParameters.Presolve |
|
getset |
Gurobi and SCIP enable presolve by default. Ask or-core-team@ for other solvers.
Definition at line 5627 of file LinearSolver.pb.cs.
◆ PrimalTolerance
global.OperationsResearch.OptionalDouble OperationsResearch.MPSolverCommonParameters.PrimalTolerance |
|
getset |
Tolerance for primal feasibility of basic solutions: this is the maximum allowed error in constraint satisfiability. For SCIP this includes integrality constraints. For Gurobi it does not, you need to set the custom parameter IntFeasTol.
Definition at line 5559 of file LinearSolver.pb.cs.
◆ RelativeMipGap
global.OperationsResearch.OptionalDouble OperationsResearch.MPSolverCommonParameters.RelativeMipGap |
|
getset |
The solver stops if the relative MIP gap reaches this value or below. The relative MIP gap is an upper bound of the relative distance to the optimum, and it is defined as:
abs(best_bound - incumbent) / abs(incumbent) [Gurobi] abs(best_bound - incumbent) / min(abs(best_bound), abs(incumbent)) [SCIP] where "incumbent" is the objective value of the best solution found so far (i.e., lowest when minimizing, highest when maximizing), and "best_bound" is the tightest bound of the objective determined so far (i.e., highest when minimizing, and lowest when maximizing). The MIP Gap is sensitive to objective offset. If the denominator is 0 the MIP Gap is INFINITY for SCIP and Gurobi. Of note, "incumbent" and "best bound" are called "primal bound" and "dual bound" in SCIP, respectively. Ask or-core-team@ for other solvers.
Definition at line 5541 of file LinearSolver.pb.cs.
◆ Scaling
global.Google.OrTools.Util.OptionalBoolean OperationsResearch.MPSolverCommonParameters.Scaling |
|
getset |
Enable automatic scaling of matrix coefficients and objective. Available for Gurobi and GLOP. Ask or-core-team@ if you want more details.
Definition at line 5659 of file LinearSolver.pb.cs.
The documentation for this class was generated from the following file: