PStart


PStart

Type: double
Modifiable: Yes

The current simplex start vector. If you setPStartvalues for every variable in the model andDStartvalues for every constraint, then simplex will use those values to compute a warm start basis. If you'd like to retract a previously specified start, set anyPStartvalue toGRB_UNDEFINED.

Note that any model modifications made after settingPStart(adding variables or constraints, changing coefficients, etc.) will discard the start. You should only set this attribute after you are done modifying your model.

Note also that you'll get much better performance if you warm start your linear program using a simplex basis (usingVBasisandCBasis). ThePStartattribute should only be used in situations where you don't have a basis.

If you'd like to provide a feasible starting solution for a MIP model, you should input it using theStartattribute.

Only affects LP models; it will be ignored for QP, QCP, or MIP models.

For examples of how to query or modify attributes, refer to ourAttribute Examples.