30.01.2015 Views

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 Reference Manual

ILOG CPLEX C++ API 9.0 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.

IloCplex::VariableSelect<br />

coordinate but differ in the value of f(x). Such a difference is known as a step in the<br />

piecewise linear function, and such a function is known as discontinuous.<br />

Syntactically, a step is represented in this way:<br />

◆ The value of the first point of a step in the array of slopes is the height of the step.<br />

◆ The value of the second point of the step in the array of slopes is the slope of the<br />

function after the step.<br />

By convention, a breakpoint belongs to the segment that starts at that breakpoint.<br />

In Concert Technology, a discontinuous piecewise linear function is represented as an<br />

instance of the class IloPiecewiseLinear (the same class as used for continuous<br />

piecewise linear functions).<br />

For examples of discontinuous piecewise linear functions, see this topic in the <strong>ILOG</strong><br />

<strong>CPLEX</strong> User's <strong>Manual</strong>.<br />

Using IloPiecewiseLinear<br />

Whether it represents a continuous or a discontinuous piecewise linear function, an<br />

instance of IloPiecewiseLinear behaves like a floating-point expression. That<br />

is, you may use it in a term of a linear expression or in a constraint added to a model<br />

(an instance of IloModel).<br />

<strong>ILOG</strong> <strong>CPLEX</strong> <strong>C++</strong> <strong>API</strong> <strong>9.0</strong> REFERENCE M ANUAL 229

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

Saved successfully!

Ooh no, something went wrong!