Forum Discussion
FICO
9 years agoCommunity Manager
Bynary variables giving non-binary solutions...
So I have been working on a model that uses different linear constrains based on which binarie is activated. For my initial problem all the linear constrains are exactly the same one.
The problem ...
FICO
9 years agoCommunity Manager
Have you checked the status of your problem before retrieving the solution values?
If you are working with Mosel, you could for example use code like the following:
!...solve...
if getprobstat<>XPRS_OPT then
writeln("No solution")
exit(0)
end-if
!...retrieve results...
Related Content
Related Content
Has anyone seen an issue with binary variables becoming non-binary?
I'm new to the community and fairly new to xpress. I've attached my code for the project (both as text and PDF). Whenever I am running this code, I am getting a solution but my solutions are not bina...6 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1CommentMIP solution status
Hello, I've been using code like this to get the solution status of a MIP: case getprobstat of XPRS_OPT: status:="Optimum found" XPRS_UNF: status:="Unfinished" XPRS_INF: status:="Infeasib...5 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum3 unread comments3 unread8Views0likes3CommentsVariable names in callback (Java API)
I construct a cut in a preintsol callback using variables from the model containing the callback. When constructing the model, I give the variables names (using withName(...)) and store them in a vec...9 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread1View0likes4Comments