Purpose
Export a
quadratic problem to a file.
Synopsis
procedure exportprob(options:integer, filename:string, obj:qexp.
Arguments
options
|
File format options:
EP_MIN
|
|
EP_MAX
|
|
EP_MPS
|
|
EP_STRIP
|
|
|
filename
|
Name of the output file; if empty, output printed to
standard output (screen)
|
obj
|
Objective function (quadratic expression)
|
Example
The following example prints the problem to screen using the default format, and then exports the problem in LP-format to
the file prob1.lp maximizing constraint Profit:
uses "mmquad"
declarations
Profit:qexp
end-declarations
...
exportprob(0, "", Profit)
exportprob(EP_MAX, "prob1", Profit)
Further information
This procedure overloads the
exportprob subroutine
of Mosel to handle quadratic objective functions. It exports the
current problem to a file, or if no file name is given (empty string
""), prints it on screen. If the given filename
has no extension, Mosel appends
.lp to it for LP format files
and
.mat for MPS format.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.