XPRMexportprob
XPRMexportprob |
Purpose
Synopsis
int XPRMexportprob(XPRMmodel model, const char *options, const char *fname, XPRMlinctr obj);
Arguments
model
|
Reference to a model
|
||||||||||
options
|
|
||||||||||
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.
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.