Initializing help system before first use

XPRBexportprob

XPRBexportprob


Purpose
Print problem matrix to a file.
Synopsis
int XPRBexportprob(XPRBprob prob, int format, char *filename);
Arguments
prob 
Reference to a problem.
format 
The matrix output file format, which must be one of:
XPRB_LP 
LP file format (default);
XPRB_MPS 
MPS file format.
filename 
Name of the output file, without extension.
Return value
0 if function executed successfully, 1 otherwise.
Example
XPRBprob expl2;
expl2 = XPRBnewprob("example2");
XPRBexportprob(expl2, XPRB_MPS, "ex2");
This prints the problem in MPS format to the file ex2.mps.
Further information
1. This function prints the matrix to a file with an extended LP or extended MPS format. LP files receive the extension .lp and MPS files receive the extension .mps. This function is not available in the student version.
2. When exporting matrices semi-continuous and semi-continuous integer variables are preprocessed: if a lower bound value greater than 0 is given, then the variable is treated like a continuous (resp. integer) variable.
3. The precision used by BCL for printing real numbers can be changed with XPRBsetrealfmt to obtain more accurate output for very large or very small numbers. For full precision matrix output the user is advised to switch to the Optimizer function XPRSwriteprob, preceded by a call to XPRBloadmat (see Appendix Using BCL with the Optimizer library for further detail).
Related topics

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