Forum Discussion
FICO
4 years agoCommunity Manager
How to get multiple solution
p.addcbintsol (printsol, None, 0)
p.mipoptimize ("") The solver only returns one feasible solution in the callback function then stop, how do I ask for multiple solutions ?
FICO
4 years agoCommunity Manager
Hi Yang Du,
Curious. Could you try to add an artificial objective that you minimize (for maximization, the logic of negative/positive would have to be inverted), just as an experiment? Maybe there is only a single optimum?
Anyhow, an alternative approach and a slightly more involved variant would be to implement a preintsol callback (unlike intsol, this is called BEFORE the solution will be accepted by the Optimizer) and always reject the solution via the p_reject field, see https://www.fico.com/fico-xpress-optimization/docs/latest/solver/optimizer/HTML/XPRSaddcbpreintsol.html (and do whatever you want to do with the solution, like storing it away yourself. Note that due to heuristics, the Optimizer might now try to present you the same solution multiple times, so it would be up to you to check this (e.g., by a pairwise comparison). That workflow is independent of the MIPADDCUTOFF approach.
Timo
Related Content
Related Content
MIP 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 unread7Views0likes3CommentsCan we manage to import multiple DTAB from a single Excel which will have multiple sheet of different DTABs.
Suppose I have two DTABs named A and B. I want to maintain a single Excel workbook containing two sheets named A and B. Whenever I need to import a DTAB, it should be retrieved from the workbook by m...0Views0likes3Comments