When solving MIP, I want to set a primal bound and a dual-bound for a model before and during the solving, which interfaces should I call? #1983
-
When solving MIP, I could get a primal bound (incumbent) and a dual-bound via a stand-alone heuristic. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can pass a (partial) integer feasible solution to highs that give it an initial primal bound. Use It is not possible to set the dual bound value |
Beta Was this translation helpful? Give feedback.
You can pass a (partial) integer feasible solution to highs that give it an initial primal bound. Use
Highs::passSolution
, which has two versions according to whether you're passing a full set of solution values (as aHighsSolution
instance, with only thecol_value
vector required) or a "sparse" primal solution (as number of values and pointers to arrays of indices and values). HiGHS will attempt to complete this solution and then use it to obtain a primal bound (if it is feasible).It is not possible to set the dual bound value