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.

PurposeFor an optimization problem to give relevant solutions, it is fundamental that you providegood quality data to your projects. In particular, it may be interesting to check that the datais consistent. If the project data is not consistent, the solving engine may find a wrong solution,or no solution, and you may think that the model is erroneous and therefore waste time tryingto improve it.<strong>OPL</strong> offers several ways to check the consistency of the data used by your projects.In particular:♦Data membership consistency: use the keyword with to ensure that cells of a given tuplein a tuple set correctly belong to a given set of possible values.Note: You can also use the keyword key for data consistency when declaring tuples. SeeKeys in tuple declaration.♦Assertions: use the keyword assert to ensure that some assertions on the data arerespected.72I 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!