How to fix variables of the presolved model
Awaiting user input
How to fix some variables of model m after m is presolved, and obtain a solution of the corresponding sub-MIP.
I tried to fix some variables of model p = m.presolve() and solve it, however, p may introduces new variables and the mapping u: p →m is unaccessible so i can't obtain a solution of m.
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
We do not recommend modifying the presolved model (since, as you noticed yourself, you cannot access the mapping back to the original model).
Why can't you fix the variables in the original model?
-1 -
Because I need to try many kinds of fixations and solve the sub-MIP, but i wish to presolve the original model m only once (to save time). In fact i don't need the mapping itself, i just need the solution of m, is there any method to achieve this?
0 -
This is not possible. You should fix the variables in the original model.
How long does presolve take in your models?
0
Post is closed for comments.
Comments
4 comments