Other modeling tips

Collects miscellaneous modeling tips that are already mentioned elsewhere in the documentation set.

Labeling constraints

It is recommended to give labels to constraints but be aware of the performance cost. See section Cost of Labeling constraints in the Language Reference Manual.

Tuples of parameters

The general expression


p in S 

where S is a set of tuples containing n fields, can be replaced by a formal parameter expression


<p1,...,pn> in S 

for more readability. For more information on tuples of parameters, see Formal parameters in the Language Reference Manual.

CPLEX infinity value

For CPLEX, the value of "infinity" is 1e+20. When CPLEX encounters a larger value, it silently truncates the value to 1e+20.

See the note in Examining the results and the data for more information.