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.

is not consistent with the statementwith origin in nodes, destination in nodes ={, }If you write Data found consistent (keyword with), the initialization of the set arcs1 willwork properly because the with syntax will find that the statement(int) nodes = (1, 5, 7);is consistent with the statementwith origin in nodes, destination in nodes ={, }Initializing tuple sets referring to other setsTo initialize tuple sets that refer to other sets with keys for data consistency, you must useinitialization expressions that provide only those key values, as shown in Initializing tuplesets referring to other sets. This is true if you initialize those tuple sets as internal data or asexternal data in .dat files, databases, or spreadsheets.Initializing tuple sets referring to other setstuple node{key int node_id;string city;string country;}{node} nodes = {,, };tuple arc {node origin;node destination;}{arc} arcs1 with origin in nodes, destination in nodes=...;execute {writeln(arcs1);};74I 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!