Initializing help system before first use

# 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
EP_HEX | Ouput numbers in hexadecimal when using MPS format
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
Parent Topic New functionality for the Mosel language

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.