General syntax
Discusses execute blocks.
A block of statements for preprocessing or postprocessing
is marked by the keyword execute:
execute {writeln("Hello World."); }
Execute blocks can be named:
execute HELLO {writeln("Hello World."); }
CAUTION:
No two execute blocks
can have the same name within the same model.
Any execute block placed before
the objective or constraints declaration is part of preprocessing;
other blocks are part of postprocessing.
The scripting context within an execute block
corresponds to the model declarations. You can think of the statements
within an execute block being embedded in
an IBM® ILOG® Script block named with.
with (thisOplModel) {writeln("Hello World.");
}
where thisOplModel is the instance
of IloOplModel representing the current
OPL model.