12.07.2015 Views

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

ILOG OPL Development Studio Language Reference Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

execute{writeln(s2);s1.add(3);writeln(s1,s2);}the result is:{1 2}{1 2 3} {1 2}whereas if you write:{int} s1={1,2};{int} s2={ i | i in s1};execute{//writeln(s2);s1.add(3);writeln(s1,s2);}the result is:{1 2 3} {1 2 3}Use the profiler feature to inspect the instantiation sequence of your model. See Profiling theexecution of a model in IDE Tutorials.See <strong>ILOG</strong> Script for <strong>OPL</strong> for details on the scripting language and its extensions for <strong>OPL</strong>.Lazy instantiationIt is important to be aware from <strong>OPL</strong> 5.2 onwards that during the process, declared elementsare instantiated on demand when referenced for the first time. See Data preprocessing inMigration from <strong>OPL</strong> 3.x (CP projects) for migration aspects.I L O G O P L D E V E L O P M E N T S T U D I O L A N G U A G ER E F E R E N C E M A N U A L77

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!