XPRBprobexportProb(Int32, String) Method |
Print problem matrix to a file. This method 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. 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.
The precision used by BCL for printing real numbers can be changed with
setRealFmt(string) 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 XPRSprob.writeProb, preceded by a call to loadMat().
Namespace: BCLAssembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntaxpublic int exportProb(
int format,
string filename
)
Public Function exportProb (
format As Integer,
filename As String
) As Integer
Parameters
- format Int32
- The matrix output file format. Possible values:
- BCLconstant.XPRB_LP – LP file format.
- BCLconstant.XPRB_MPS – MPS file format.
- filename String
- The name of the output file without the extension.
Return Value
Int320 on success, 1 otherwise.
Examplexbcontr1.cs, xbdelvr.cs, xbexpl.cs, xbportf.cs and xbpurch.cs in the Introductory Examples folder.
foliolp.cs, xbexpl1.cs, xbexpl2 and xbqprl2.cs in the User's Guide Examples folder.
See Also