Reading Basis Files

In addition to other file formats, the read command is also used to read basis files. These files contain information for ILOG CPLEX that tells the simplex method where to begin the next optimization. Basis files usually correspond to the result of some previous optimization and help to speed re-optimization. They are particularly helpful when you are dealing with very large problems if small changes are made to the problem data.

Writing Basis Files on page 50 showed you how to save a basis file for the example after it was optimized. For this tutorial, first read the example.lp file. Then read this basis file by typing the following command:

  read example.bas 

The message of confirmation:

  Basis 'example.bas' read.

indicates that the basis file was successfully read. If the advanced basis indicator is on, this basis will be used as a starting point for the next optimization, and any new basis created during the session will be used for future optimizations. If the basis changes during a session, you can save it by using the write command.

Summary

The general syntax for the read command is:

  read filename file_format

or

  read filename.file_extension

where file_extension corresponds to one of the allowed file formats.


Previous Page: Reading MPS Files   Return to Top Next Page: Setting ILOG  CPLEX Parameters