Provide Variable Hints from AMPL
I have a MIQCP defined as an AMPL model. I would like to provide the solver variable hints to see if solution times can be improved. These hints are developed using a MIP relaxation of the same model.
I have tried the following in AMPL (as well as other variations on the suffix name like hintval, hint, etc.)
suffix varhintval IN;
let y[1].varhintval := 1;
...
The solver seems to be ignoring these suffixes as there is no change in the log output with or without them. If there is not a straightforward way to provide these from AMPL, I'm open to switching to the Python API but would prefer to avoid rewriting the problem if at all possible.
Any advice is greatly appreciated!
I'd also be curious how to query the Kappa value from the solver from AMPL, to check the numeric quality of the solution. I've seen examples of how to query this value from the other Gurobi APIs, but nothing on AMPL.
-
Official comment
This post is more than three 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 why not try our AI Gurobot?.
Post is closed for comments.
Comments
1 comment