coinWrite

Write an optiprob structure to a MPS, QPS or LP file

Syntax

coinWrite(prob,filename)

coinWrite(prob,filename,filetype)

write(optiObj)

Description

Write a LP, MILP or QP to a mathematical description file. Nonlinear problems are not supported.

coinWrite(prob,filename) writes the problem described by the optiprob structure prob to the file filename. If you only supply a filename the file will be written to the current Matlab directory. Otherwise if you supply a full path + filename, it will be written to that location. You must supply the file extension using this method.

coinWrite(prob,filename,filetype) allows the user to enter just the filename (without an extension), and manually specify the file type (e.g. 'mps').

write(optiObj,filename,filetype) allows the above method to be called directly from a OPTI object.

Important Notes

Routines for writing MPS, QPS, and LP problems use CoinUtils.

If the routine doesn't work the error may reside in the underlying code, in which case I cannot fix it. You may like to report this to the original authors.