Initializing help system before first use

XPRMexportprob

XPRMexportprob


Purpose
Export the active problem to a file.
Synopsis
int XPRMexportprob(XPRMmodel model, const char *options, const char *fname, XPRMlinctr obj);
Arguments
model 
Reference to a model
options 
Format of the output. Possible value are:
"" 
LP output format, minimization (default)
"m" 
MPS output format
"p" 
Maximization (default is minimization)
"s" 
Use scrambled names
"x" 
Hexadecimal numbers for MPS
fname 
File name, may be NULL
obj 
Objective to use for optimization, or NULL (no objective) or XPRM_KEEPOBJ (last objective used)
Return value
0 if executed successfully, XPRM_RT_ERROR if no problem is available or XPRM_RT_IOERR in case of IO error.
Further information
This function exports the active problem to an MPS or LP format matrix file. If the filename is set to NULL, the output is printed to the console. If the filename is given without an extension, the extension .mps for MPS files or .lp for LP format files is added. The output format options can be combined in a single string ( e.g. "sp"). This function is disabled ( i.e. it succeeds but performs no operation) when Mosel is running in trial mode.
When exporting matrices in MPS format any possibly specified lower bounds on semi-continuous or semi-continuous integer variables are lost. LP format matrices maintain the complete information.

© 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.