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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

10 * 100 + 20 * (ship[o][d] - 100)when100 200;40} ship[o][d];The above piecewise-linear function has a fixed number of pieces, but <strong>OPL</strong> also allows genericpieces. The number of pieces may then depend on the input data, as inpiecewise(i in 1..n) {slope[i] -> breakpoint[i];slope[n+1];} ship[o][d];This piecewise-linear function is equivalent toslope[1] * ship[o][d]whenship[o][d]

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

Saved successfully!

Ooh no, something went wrong!