How do I solve an MIP model with FICO Xpress, via Pyomo?
In addition, I want to set parameters of Xpress like miptol
and miprelstop
. How do I do that in Pyomo?
How do I solve an MIP model with FICO Xpress, via Pyomo?
In addition, I want to set parameters of Xpress like miptol
and miprelstop
. How do I do that in Pyomo?
Copyright © 2021 Jogjafile Inc.
In order to mark a variable as binary, you have to define it to be
within
theBinary
constraint:Setting controls is done with the
options
attribute of the solver. Here is a short sample that creates a simple model, sets options, and solves.This outputs (among other things)
which shows that the binary condition on
z
was respected (otherwise, the optimal value forz
would have been 0.5). It also shows the modified parameter values in the output log.