Features of IBM ILOG Script for OPL
Briefly explains what you can do with IBM ILOG Script
for OPL and introduces the main and execute statements.
IBM ILOG Script for OPL enables you to:
Add preprocessing instructions to prepare data for the model
Control the flow while the model is solved
Set CPLEX parameters, CP Optimizer parameters, CP Optimizer search phases, and OPL options
Add postprocessing instructions to aggregate, transform, and format data (including results data) for display or for sending to another application, for example, a spreadsheet
Solve repeated instances of the same model
Create algorithmic solutions where the output of one model instance is used as the input of a second model instance
Script statements
When you use IBM ILOG Script for OPL, you avoid having to compile and link; you just add script statements to your model file.
There are two possible top-level statements:
The
mainstatement for a flow control scriptThe
executestatement for preprocessing and postprocessing scripts
You can also write script statements in data files by
using the prepare and invoke keywords.
There are no separate script files; you write script statements directly in model files within “execute” or “main” blocks.