12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's 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 routine setPriorities sets the priority order.mipex3.cThis example derives from mipex1.c. The differences between that simpler MIP exampleand this one are:◆◆◆◆The problem solved is slightly different so the output is interesting. The actual SOS andpriority order that the example implements are arbitrary; they do not necessarilyrepresent good data for this problem.The <strong>ILOG</strong> <strong>CPLEX</strong> preprocessing parameters for the presolver and aggregator are turnedoff to make the output interesting. Generally, this is not required nor recommended.The routine setsosandorder sets the SOS and priority order:●●●It calls CPXcopysos to copy the SOS into the problem object.It calls CPXcopyorder to copy the priority order into the problem object.It writes the priority order to files by calling CPXordwrite.The routine CPXwriteprob writes the problem with the constrainnts and SOSs to diskbefore the example copies the SOS and priority order to verify that the base problem wascopied correctly.332 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

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

Saved successfully!

Ooh no, something went wrong!