12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's 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.

Chapter 18 Using Piecewise Linear Functions in Optimization: a Transport Example . . 337Piecewise Linearity in <strong>ILOG</strong> <strong>CPLEX</strong>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .338What Is a Piecewise Linear Function?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .338Syntax of Piecewise Linear Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .339Discontinuous Piecewise Linear Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .340Isolated Points in Piecewise Linear Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .341Using IloPiecewiseLinear in Expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342Describing the Problem. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .342Variable Shipping Costs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .343Model with Varying Costs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .344Developing a Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .345Representing the Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .345Adding Constraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .345Checking Convexity and Concavity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .346Adding an Objective. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .346Solving the Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .347Displaying a Solution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .347Ending the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .347Complete Program: transport.cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .347Chapter 19 Logical Constraints in Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349What Are Logical Constraints?. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .350What Can Be Extracted from a Model with Logical Constraints? . . . . . . . . . . . . . . . . . . .350Logical Constraints in the C++ API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .350Logical Constraints in the Java API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .351Logical Constraints in the .NET API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .351Which Nonlinear Expressions Can Be Extracted? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .352Logical Constraints for Counting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353Logical Constraints as Binary Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353How Are Logical Constraints Extracted? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .353Chapter 20 Using Indicator Constraints. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 19

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

Saved successfully!

Ooh no, something went wrong!