Matrix files
If the optimization process with Xpress Optimizer is started from within a Mosel program, or if the solving procedure is part of the application into which a Mosel model has been embedded, then the problem matrix is loaded in memory into the solver without writing it out to a file (which would be expensive in terms of running time). However, in certain cases it may still be required to be able to produce a matrix. With Xpress, the user has the choice between two matrix formats: extended MPS and extended LP format, the latter being in general more easily human-readable since constraints are printed in algebraic form.
With Mosel, there are several possibilities for generating a matrix:
- With a matrix generation statement in the model file:
to create an MPS matrix for our problem add the lineexportprob(EP_MPS, "folio", Return)
for an LP format matrix (which we intend to maximize at some point) add the lineexportprob(EP_MAX, "folio", Return)
immediately before or instead of the optimization statement. - From a Java application after having executed the model file:
XPRMModel model; model.exportProblem("m", "folio");
This will output the matrix in MPS format. To print with LP format change the first argument of exportProblem:model.exportProblem("p", "folio");
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.