XPRBexportprob
PurposeSynopsisint 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 XPRB_MPS filename Name of the output file, without extension.Return value0 if function executed successfully, 1 otherwise.ExampleXPRBprob expl2; expl2 = XPRBnewprob("example2"); XPRBexportprob(expl2, XPRB_MPS, "ex2");This prints the problem in MPS format to the file ex2.mat.Further information1. This function prints the matrix to a file with an extended LP or extended MPS format. Provided that no extension is given by the user LP files receive the extension .lp. MPS files always receive the extension .mat. 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.Related topics
If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.