Originally posted by: SystemAdmin
// assume model has been built and extracted to IloCplex cplex
// build model
cplex.exportModel("mymodel.lp"); // exports model in LP format
// ... or ...
cplex.exportModel("mymodel.mps"); // exports model in MPS format
If you want to be able to extract the constraint matrix, right hand side vector etc. separately (perhaps to feed into some other program), the MPS format is probably more suitable.
Paul
Mathematicians are like Frenchmen: whenever you say something to them, they translate it into their own language, and at once it is something entirely different. (Goethe)
#CPLEXOptimizers#DecisionOptimization