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
withintheBinaryconstraint:Setting controls is done with the
optionsattribute 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
zwas respected (otherwise, the optimal value forzwould have been 0.5). It also shows the modified parameter values in the output log.