Reading LP Files

At the CPLEX> prompt type:

  read 

The following message appears requesting a file name:

  Name of file to read:

Four files have been saved at this point in our tutorial:

example
example2
example.lp
example.bas

Specify the file named example that you saved while practicing the write command.

You recall that the example problem was saved in LP format, so in response to the file type prompt, enter:

  lp

ILOG CPLEX displays a confirmation message, like this:

  Problem 'example' read.
  Read Time =   0.03 sec.

The example problem is now in memory, and you can manipulate it with ILOG CPLEX commands.

  read example lp 


Previous Page: Selecting a Read File Format   Return to Top Next Page: Using File Extensions