Purpose
Execute an Optimizer command
or enter interactive mode of the Optimizer.
Synopsis
procedure command(cmd:string)
procedure command
Argument
cmd
|
Command or sequence of commands separated by
"\n" character
|
Example
Solve a MIP problem and then enter interactive mode:
command("minim\nglobal")
command
Further information
When used without parameter, this procedure enters an
interactive mode of the Optimizer similar to the console mode:
model execution is suspended and Optimizer commands can be typed
directly. Model execution resumes after command quit
has been typed or the input stream has reached an end of file.
Using the alternate form of the procedure with an argument,
one can send a command (or sequence of commands) to the
Optimizer: this may
be useful to execute commands for which there is no mmxprs
interface.
During the execution of this procedure, callbacks set up in the
model are effective and the problem solution status of
mmxprs
is updated upon termination. Note that, commands altering the
problem must be avoided (like readprob, change of
name of the problem, etc.) in order
to preserve consistency between Mosel and Optimizer representations
of the problem.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.