Model.export_problem
Purpose
Synopsis
procedure model.export_problem(options=None, file_name=None)
Arguments
|
options
|
Output format options (can be combined):
|
||||||||||
|
file_name
|
Output file path. If
None, output goes to console. If no extension given,
.mps or
.lp is added based on format.
|
Further information
1. The model must have a valid optimization problem loaded. This requires running the model first to build the problem.
2. Raises
RuntimeError if no problem is available for export or in case of I/O error.
3. Exports core Mosel problem objects (equivalent to Mosel's
exportprob). Extended problem information from solver modules (such as
mmxprs or
mmnl/
mmxnlp) is not included. MPS format does not preserve lower bounds on semi-continuous variables; use LP format if this information is needed.
Module
moselpy
© 2001-2026 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.
