executorsetexecmode
executorsetexecmode |
Purpose
Configure the execution mode of the Xpress Executor component.
Synopsis
procedure executorsetexecmode(exec:Executor, execmode:string)
Arguments
exec
|
The Executor to configure
|
execmode
|
The execution mode; one of
EXECUTOR_MODE_MODEL_BIM (if modelfile is a single .bim),
EXECUTOR_MODE_MODEL_ZIP (if modelfile is a .zip file containing a model.bim),
EXECUTOR_MODE_LP_XMPS (if the execution input data is a model in LP or XMPS format).
|
Example
executorsetexecmode( myexecutor, EXECUTOR_MODE_MODEL_ZIP ) if myexecutor.status<>EXECUTOR_OK then writeln("Error returned by Executor: ",myexecutor.lasterror) exit(1) end-if
Further information
1. After calling, check the value of
exec.status for any errors.
2. This can only be used with the design instance of the Xpress Executor component, or with an Executor initialized using
executorinitlocal.
3. If the executor has been initialized with
executorinitlocal, the execution mode may not be
EXECUTOR_MODE_LP_XMPS.
Related topics