Forum Discussion
FICO
2 years agoCommunity Manager
How to export LP problem definition w/XpressProblem
I used to create .lp files to help debug and share problem definitions on the old XPRBprob BCL class. This was done via prob.exportProb() (on an instance of XPRBprob). For the new XpressProblem interface I can't figure out how to generate an LP file, or at least some human readable file (.mps produced by prob.writeProb() isn't super easy to parse). Or since the XpressProblem extends the XPRSprob only, there is no way to create an LP file anymore?
2 Replies
- FICOCommunity Manager
Hi William,
Passing a filename ending with ".lp", or passing the "l" flag (lower case L) to writeProb will cause it to write an LP file:
prob.writeProb("prob.lp") prob.writeProb("probfile", "l") - FICOCommunity Manager
Ah, yup that worked! And yeah thanks I was a little confused at the fact that a lot of the new XpressProblem stuff is just inherited from XPRSprob, which in its documentation mentions this flag.
Related Content
Related Content
Problem with Xpress installation: Module `mminsight' not found.
I attempted a new installation of Xpress and Insight on a Windows 11 PC. (Downloaded files yesterday.) xp9.8.0_win_x86_64_setup.exe and FICO_Xpress_Insight_5.16.1_Community_Edition_setup.exe installe...8 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum1 unread comment1 unread5Views0likes1CommentA specific separation procedure, $(l,S)$ Inequalities, to solve the lot-sizing problem
Dear support team, I have tried to use a specific separation procedure, $(l, S)$ Inequalities, to solve the lot-sizing problem proposed in the references, like Algorithm and formulations for lot siz...8 months agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum4 unread comments4 unread10Views0likes4Comments