Solving several OPL examples consecutively
This example consists of a script that solves several examples consecutively.
The example illustrates how we can "chain" model execution by scripting. It can be found in:
<Install_dir>\opl\examples\opl\examples_suite
There are some prerequisites before you run this example in the IDE, or on the optimization server.
In the IDE, in order to successfully execute the run configuration
of examples_suite, you need to ensure that the subprojects
can be found.
In the script, the subprojects to execute are specified with a relative path, for example ../blending. If the subprojects are not imported into the workspace of the IDE, they cannot be found and the script execution fails.
You have two options:
- Import the subprojects referenced in the script before running
examples_suite. These subprojects are:blending,cutstock,timetabling(school class scheduling), andsched_bridge. - Edit the scripts and specify an absolute path for the subprojects to execute.
Similarly, if you want to run examples_suite on
an optimization server, the subprojects must be deployed on the server
first.