OptWrite(opt, filename, format)
Writes the definition of the linear program «opt» to a file. Three textual formats are supported, which can be selected using the optional «format» parameter:
"MPS"(see mps-format.mps for details)"
The «filename» is interpreted relative to the CurrentDataFolder.
When debugging an LP, to figure out if you defined your constraints and decision variables as intended, it can sometimes be helpful to view the file written by OptWrite in a text editor.
The file written by OptWrite can be read back in as an LP using OptRead.
OptWrite is not able to write textual specifications for quadratic (QP or QCP) or non-linear (NLP) problems.
Enable comment auto-refresher