exportprob


Purpose
Export a quadratic problem to a file.
Synopsis
procedure exportprob(options:integer, filename:string, obj:qexp)
procedure exportprob(filename:string, obj:qexp)
Arguments
options 
File format options:
EP_MIN 
LP format, minimization
EP_MAX 
LP format, maximization
EP_MPS 
MPS format
EP_STRIP 
Use scrambled names
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.
Module
mmquad


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.