Description of oplrun
oplrun executable and its
purpose, and the associated code samples.
In IBM ILOG CPLEX Studio, the
oplrun command enables
you to execute an OPL model or project from the Windows command line
or in a UNIX environment. If you are working in a Windows environment,
you can execute the IDE from the command line using the
as described in Launching the CPLEX Studio IDE .
On UNIX platforms, two different commands are available:
recommended because it is faster, but if your model includes external
Java function calls, use
Definition and purpose
enables you to run an OPL model or project externally, that is, directly
from the command line instead of launching the IDE. You will find
it useful as a pre-deployment step to check speed and memory consumption
outside of the IDE and to tune your model on large data sets.
to check and compare the results of the execution from the IDE and outside it
to overcome possible IDE slowness or overhead caused by IDE-specific settings
The executable is available on both Windows and UNIX platforms.
<Install_dir> being the installation directory of CPLEX Optimization Studio, it is delivered as:
On UNIX platforms:
Assuming the C shell is being used, you need to define the
LD_LIBRARY_PATHenvironment variable using
setenv. For example:
setenv LD_LIBRARY_PATH <Install_dir>/opl/bin/<platform_name_and_version>