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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Logical constraints for CPLEXLogical constraints are one particular kind of discrete or numerical constraints. <strong>OPL</strong> andCPLEX can translate logical constraints automatically into their transformed equivalent thatthe discrete (MIP) or continuous (LP) optimizers of <strong>ILOG</strong> CPLEX can process efficiently.This section describes all the available logical constraints, as well as the logical expressionsthat can be used in logical constraints. Logical constraints are available in constraintprogramming models without linearization.For an example of how <strong>OPL</strong> uses logical constraints, see Tutorial: Using CPLEX logicalconstraints in the <strong>Language</strong> User’s <strong>Manual</strong>.In this section, you will learn:♦What are logical constraints?♦What can be extracted from a model with logical constraints?♦Which nonlinear expressions can be extracted?♦Logical constraints for counting♦How are logical constraints extracted?What are logical constraints?For <strong>ILOG</strong> CPLEX, a logical constraint combines linear constraints by means of logicaloperators, such as logical-and, logical-or, negation (not), conditional statements (if ...then ...) to express complex relations between linear constraints. <strong>ILOG</strong> CPLEX can alsohandle certain logical expressions appearing within a linear constraint. One such logicalexpression is the minimum of a set of variables. Another such logical expression is the absolutevalue of a variable. There’s more about logical expressions in Which nonlinear expressionscan be extracted?.What can be extracted from a model with logical constraints?Logical constraints extracted by CPLEX lists what logical constraints CPLEX can extract.Logical constraints extracted by CPLEXSymbol&&| |!MeaningLogical ANDLogical ORLogical NOT126I 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 L

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

Saved successfully!

Ooh no, something went wrong!