Piecewise-linear functions.................................................................................................................91
Set expressions.................................................................................................................................98
Boolean expressions.......................................................................................................................100
Constraints.................................................................................................................................................101
Introduction.....................................................................................................................................102
Using constraints.............................................................................................................................103
Constraint labels.............................................................................................................................107
Types of constraints........................................................................................................................117
Formal parameters.....................................................................................................................................129
Basic formal parameters.................................................................................................................130
Tuples of parameters.......................................................................................................................133
Filtering in tuples of parameters......................................................................................................134
Scheduling..................................................................................................................................................137
Introduction.....................................................................................................................................139
Piecewise linear and stepwise functions.........................................................................................141
Interval variables.............................................................................................................................144
Unary constraints on interval variables...........................................................................................148
Precedence constraints between interval variables........................................................................149
Constraints on groups of interval variables.....................................................................................150
A logical constraint between interval variables: presenceOf...........................................................152
Expressions on interval variables....................................................................................................153
Sequencing of interval variables.....................................................................................................155
Cumulative functions.......................................................................................................................158
State functions................................................................................................................................163
Notations.........................................................................................................................................168
IBM ILOG Script for OPL.........................................................................................................169
Language structure....................................................................................................................................171
Syntax.............................................................................................................................................173
Expressions in IBM ILOG Script.....................................................................................................179
Statements......................................................................................................................................193
Built-in values and functions.......................................................................................................................201
Numbers..........................................................................................................................................203
IBM ILOG Script strings..................................................................................................................217
IBM ILOG Script Booleans..............................................................................................................227
IBM ILOG Script arrays...................................................................................................................233
Objects............................................................................................................................................239
Dates...............................................................................................................................................247
The null value..................................................................................................................................255
The undefined value........................................................................................................................256
IBM ILOG Script functions..............................................................................................................257
Miscellaneous functions..................................................................................................................258
Index........................................................................................................................259
IBM ILOG OPL LANGUAGE REFERENCE MANUAL
4