Initializing help system before first use

exportnl

exportnl


Purpose
Save the NL file.
Synopsis
procedure exportnl(filename:string, obj:linctr)
procedure exportnl(filename:string, nlobj:nlctr)
Arguments
filename 
Name of the output file; if empty, output is printed to standard output (console)
obj 
Linear objective function
nlobj 
Nonlinear objective function
Example
The following example saves a problem with the nonlinear objective function Obj to the file prob1.nl, it then switches to ASCII format for displaying the problem on screen :
uses "nlsolv"
declarations
 Obj:nlctr
end-declarations
 ...

exportnl("prob1", Obj)
setparam("nl_binary", false)
exportnl("", Obj)
Further information
This procedure 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, nlsolv appends .nl to it.
Module