8.6.2. Real-number parameters¶
C API parameter |
Parameter |
Description |
---|---|---|
MDO_REAL_PARAM_MAX_TIME |
The maximum solving time. |
|
MDO_REAL_PARAM_SPX_PRIMAL_TOLERANCE |
The primal feasible tolerance in the simplex method. |
|
MDO_REAL_PARAM_SPX_DUAL_TOLERANCE |
The dual feasible tolerance in the simplex method. |
|
MDO_REAL_PARAM_IPM_PRIMAL_TOLERANCE |
The primal feasible (relative) tolerance in the interior point method (IPM). |
|
MDO_REAL_PARAM_IPM_DUAL_TOLERANCE |
The dual feasible (relative) tolerance in the IPM. |
|
MDO_REAL_PARAM_IPM_GAP_TOLERANCE |
The dual gap (relative) tolerance in the IPM. |
|
MDO_REAL_PARAM_MIP_INTEGER_TOLERANCE |
The tolerance of the value of an integer for MILP. |
|
MDO_REAL_PARAM_MIP_OBJECTIVE_TOLERANCE |
The tolerance of the objective for MILP. |
|
MDO_REAL_PARAM_MIP_GAP_ABS |
The allowable gap (absolute) for MILP. |
|
MDO_REAL_PARAM_MIP_GAP_REL |
The allowable gap (relative) for MILP. |
|
MDO_REAL_PARAM_MIP_LINEARIZATION_BIG_M |
||
MDO_REAL_PARAM_MIP_CUTOFF |
In addition, the parameters of C++、Java、Python API are in the namespace of MDO_REAL_PARAM
。
8.6.2.1. “MaxTime”¶
A real-number parameter that specifies the maximum solving time of the solver, in seconds.
Group: Common
Default value: 1.7976931348623158E+308
Value range: [0, ∞)
Note
By default, MindOpt uses the wall clock time for timing.
If the value is set to 0, the solving time is not limited.
Examples
C
Mdo_setRealParam(model, "MaxTime", 7200.0);C++
model.setRealParam("MaxTime", 7200.0);Python
model.set_real_param("MaxTime", 7200.0)
8.6.2.2. “SPX/PrimalTolerance”¶
A real-number parameter that specifies the primal feasible tolerance in the simplex method.
Group: simplex method
Default value: 1.E-6
Value range: [1.E-3, 1.E-9]
Examples
C
Mdo_setRealParam(model, "SPX/PrimalTolerance", 1.E-6);C++
model.setRealParam("SPX/PrimalTolerance", 1.E-6);Python
model.set_real_param("SPX/PrimalTolerance", 1.E-6)
8.6.2.3. “SPX/DualTolerance”¶
A real-number parameter that specifies the dual feasible tolerance in the simplex method.
Group: simplex method
Default value: 1.E-6
Value range: [1.E-3, 1.E-9]
Examples
C
Mdo_setRealParam(model, "SPX/DualTolerance", 1.E-6);C++
model.setRealParam("SPX/DualTolerance", 1.E-6);Python
model.set_real_param("SPX/DualTolerance", 1.E-6)
8.6.2.4. “IPM/PrimalTolerance”¶
A real-number parameter that specifies the primal feasible (relative) tolerance in the IPM.
Group: interior point method
Default value: 1.E-8
Value range: [1.E-1, 1.E-12]
Examples
C
Mdo_setRealParam(model, "IPM/PrimalTolerance", 1.E-8);C++
model.setRealParam("IPM/PrimalTolerance", 1.E-8);Python
model.set_real_param("IPM/PrimalTolerance", 1.E-8)
8.6.2.5. “IPM/DualTolerance”¶
A real-number parameter that specifies the dual feasible (relative) tolerance in the IPM.
Group: interior point method
Default value: 1.E-8
Value range: [1.E-1, 1.E-12]
Examples
C
Mdo_setRealParam(model, "IPM/DualTolerance", 1.E-8);C++
model.setRealParam("IPM/DualTolerance", 1.E-8);Python
model.set_real_param("IPM/DualTolerance", 1.E-8)
8.6.2.6. “IPM/GapTolerance”¶
A real-number parameter that specifies the dual gap (relative) tolerance in the IPM.
Group: interior point method
Default value: 1.E-8
Value range: [1.E-1, 1.E-12]
Examples
C
Mdo_setRealParam(model, "IPM/GapTolerance", 1.E-8);C++
model.setRealParam("IPM/GapTolerance", 1.E-8);Python
model.set_real_param("IPM/GapTolerance", 1.E-8)
8.6.2.7. “MIP/IntegerTolerance”¶
A real-number parameter that specifies the tolerance of the value of an integer for MILP.
Group: milp method
Default value: 1.E-6
Value range: [1.E-9, 1.E-2]
Examples
C
Mdo_setRealParam(model, "MIP/IntegerTolerance", 1.E-9);C++
model.setRealParam("MIP/IntegerTolerance", 1.E-9);Python
model.set_real_param("MIP/IntegerTolerance", 1.E-9)
8.6.2.8. “MIP/ObjectiveTolerance”¶
A real-number parameter that specifies the tolerance of the objective for MILP.
Group: milp method
Default value: 1.E-6
Value range: [1.E-9, 1.E-2]
Examples
C
Mdo_setRealParam(model, "MIP/ObjectiveTolerance", 1.E-6);C++
model.setRealParam("MIP/ObjectiveTolerance", 1.E-6);Python
model.set_real_param("MIP/ObjectiveTolerance", 1.E-6)
8.6.2.9. “MIP/GapAbs”¶
A real-number parameter that specifies the allowable gap (absolute) for MILP.
Group: milp method
Default value: 1.E-6
Value range: [0, 1.7976931348623158E+308]
Examples
C
Mdo_setRealParam(model, "MIP/GapAbs", 1.E-6);C++
model.setRealParam("MIP/GapAbs", 1.E-6);Python
model.set_real_param("MIP/GapAbs", 1.E-6)
8.6.2.10. “MIP/GapRel”¶
A real-number parameter that specifies the allowable gap (relative) for MILP.
Group: milp method
Default value: 1.E-4
Value range: [0, 1.7976931348623158E+308]
Examples
C
Mdo_setRealParam(model, "MIP/GapRel", 1.E-4);C++
model.setRealParam("MIP/GapRel", 1.E-4);Python
model.set_real_param("MIP/GapRel", 1.E-4)
8.6.2.11. “MIP/LinearizationBigM”¶
A real-number parameter that specifies MIP中重列非线形函数时的最大系数.
Group: milp method
Default value: 1.E+8
Value range: [0, 1E+10]
Examples
C
Mdo_setRealParam(model, "MIP/LinearizationBigM", 1.E+4);C++
model.setRealParam("MIP/LinearizationBigM", 1.E+4);Python
model.set_real_param("MIP/LinearizationBigM", 1.E+4)
8.6.2.12. “MIP/Cutoff”¶
A real-number parameter that specifies MIP中重列非线形函数时的最大系数.
Group: milp method
Default value: 1.7976931348623158E+308
Value range: [-1.7976931348623158E+308, 1.7976931348623158E+308]
Examples
C
Mdo_setRealParam(model, "MIP/Cutoff", 1.E-4);C++
model.setRealParam("MIP/Cutoff", 1.E-4);Python
model.set_real_param("MIP/Cutoff", 1.E-4)