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.

The discontinuous piecewise linear function sign()Then this modeldvar float x;dvar float signx;dvar float y;dvar float signy;maximize x;subject to {x == 2;signx == piecewise{0->0; 2->0; 0}(1,1) x;y == -2;signy == piecewise{0->0; 2->0; 0}(1,1) y;}gives the following output:Final solution with objective 2.0000:x = 2.0000;signx = 1.0000;y = -2.0000;signy = -1.0000;98I 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!