Using the Interactive Optimizer

The following is screen output from a CPLEX Interactive Optimizer session where the example model is entered and solved. CPLEX> indicates the CPLEX prompt, and text following this is user input.

  Welcome to CPLEX Interactive Optimizer 8.1.0
    with Simplex, Mixed Integer & Barrier Optimizers
  Copyright (c) ILOG 1997-2002
  CPLEX is a registered trademark of ILOG
  
  Type 'help' for a list of available commands.
  Type 'help' followed by a command name for more
  information on commands.
  
  CPLEX> enter example
  Enter new problem ['end' on a separate line terminates]:
  maximize  x1 + 2 x2 + 3 x3
  subject to -x1 +  x2 + x3 <= 20
              x1 - 3 x2 + x3 <=30
  bounds
  0 <= x1 <= 40
  0 <= x2
  0 <= x3
  end
  CPLEX> optimize
  Tried aggregator 1 time.
  No LP presolve or aggregator reductions.
  Presolve time =    0.00 sec.
  
  Iteration log . . .
  Iteration:     1   Dual infeasibility =             0.000000
  Iteration:     2   Dual objective     =           202.500000
  
  Dual simplex - Optimal:  Objective =   2.0250000000e+002
  Solution time =    0.01 sec.  Iterations = 2 (1)
  
  CPLEX> quit
  


Previous Page: Solving an LP with CPLEX Technology   Return to Top Next Page: Concert Technology for C++ Users