Forum Discussion
FICO
7 years agoCommunity Manager
How to load a MIP solution?
Dear all, Currently, I am trying to provide an initial solution to my IP that has three multidimensional (binary) decision variables (x(N), y(N,M) and z(M)). I know that there are the two functions ...
FICO
7 years agoCommunity Manager
Your version 2 that uses 'addmipsol' is generally preferable since this routine is more flexible, in particular it allows you to provide partial or slightly infeasible solutions (see https://www.fico.com/fico-xpress-optimization/docs/latest/mosel/mosel_lang/dhtml/addmipsol.html )
It also has an alternative version that takes an 'mpsol' object as its second argument which could be populated as follows for your example:
declarations
MySol2: mpsol
end-declarations
forall(n in N) setsol(MySol2, x(n), xStrt(n))
forall(n in RN, m in RM) setsol(MySol2, y(n,m), Strt(n,m))
forall(m in RM) setsol(MySol2, z(m), zStrt(m))
addmipsol("UserSol2", MySol2)
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 unread6Views0likes3CommentsLoading an MIP solution
I'm having trouple loading an existing MIP solution into XPRESS using C++. The documentation for "load MIP solution" has the following example based on C: XPRBprob expl2;double vals[] = {1.5, 1, 0...14 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread0Views0likes1Comment