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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

◆ Test Data on page 135◆ Choose an Optimizer on page 135◆ Program with a View toward Maintenance and Modifications on page 136Prototype the ModelBegin by creating a small-scale version of the model for your problem. This prototype modelcan serve as a test-bed for your application and a point of reference during development.Identify Routines to UseIf you decompose your application into manageable components, you can more easilyidentify the tools you will need to complete the application. Part of this decompositionconsists of deciding which methods or routines from the <strong>ILOG</strong> <strong>CPLEX</strong> ComponentLibraries your application will call. Such a decomposition will assist you in testing forcompleteness; it may also help you isolate troublesome areas of the application duringdevelopment; and it will aid you in measuring how much work is already done and howmuch remains.Test InteractivelyThe Interactive Optimizer in <strong>ILOG</strong> <strong>CPLEX</strong> (introduced in the manual <strong>ILOG</strong> <strong>CPLEX</strong>Getting Started) offers a reliable means to test the <strong>ILOG</strong> <strong>CPLEX</strong> component of yourapplication interactively, particularly if you have prototyped your model. Interactive testingthrough the Interactive Optimizer can also help you identify precisely which methods orroutines from the Component Libraries your application needs. Additionally, interactivetesting early in development may also uncover any flaws in procedural logic before theyentail costly coding efforts.Most importantly, optimization commands in the Interactive Optimizer perform exactly likeoptimization routines in the Component Libraries. For an LP, the optimize command in theInteractive Optimizer works the same way as the cplex.solve and CPXlpopt routines inthe <strong>ILOG</strong> <strong>CPLEX</strong> Component Libraries. Consequently, any discrepancy between theInteractive Optimizer and the Component Libraries routines with respect to the solutionsfound, memory used, or time taken indicates a problem in the logic of the application callingthe routines.Assemble Data EfficientlyAs indicated in previous chapters, <strong>ILOG</strong> <strong>CPLEX</strong> offers several ways of putting data intoyour problem or (more formally) populating the problem object. You must decide whichapproach is best adapted to your application, based on your knowledge of the problem dataand application specifications. These considerations may enter into your decision:134 <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!