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 Timo,
Thanks for your reply. I'm working with feasibility problem and I'm sure there are many feasible solutions. I tried your proposal but still only get one solution.
p.setControl({'MIPADDCUTOFF': 1, 'MAXMIPSOL':5})
p.addcbintsol (printsol, None, 0)
p.solve()
def printsol(my_prob, object):
cols = my_prob.attributes.originalcols
objval = my_prob.attributes.lpobjval
x = []
my_prob.getlpsol (x, None, None, None)
print ("Integer solution found:", objval, "; values:")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