Skip to content

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

Answered by jajhall
linpeng0105 asked this question in Q&A
Discussion options

You must be logged in to vote

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 a HighsSolution instance, with only the col_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

Replies: 1 comment

Comment options

jajhall
Oct 17, 2024
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by linpeng0105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants