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.

}{Edge} setEdges = { | o,d in Nodes : edges[o][d]==1};computes this sparse representation using a simple generic set. It is of course possible to definegeneric arrays of sets. For example, the declaration:{int} a[i in 3..4] = {e | e in 1..10: e mod i == 0};initializes a[3] to {3,6,9} and a[4] to {4,8}.52I 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!