Learn R Programming

clpAPI (version 1.3.1)

writeMPSCLP: Write an MPS Format file to the given filename

Description

Low level interface function to the COIN-OR Clp function Clp_writeMps. Consult the COIN-OR Clp documentation for more detailed information. This function is only available, if you are using COIN-OR Clp version >= 1.17.2.

Usage

writeMPSCLP(lp, fname, formatType = 0, numberAcross = 1, objSense = 1)

Arguments

lp

An object of class "'>clpPtr" as returned by initProbCLP. This is basically a pointer to a COIN-OR Clp problem object.

fname

A filename.

formatType

Integer value: 0 = normal, 1 = extra or 2 = hex.

numberAcross

Number across is 1 or 2.

objSense

Use objSense = -1 to flip the objective funtion around.

Value

Returns zero on success, otherwise non zero.

Details

Interface to the C function writeMps which calls the COIN-OR Clp function Clp_writeMps.

References

The COIN-OR Clp home page at https://projects.coin-or.org/Clp