Using the Interactive Optimizer
The Interactive Optimizer solves the model in this way.
The following sample is screen output from a CPLEX Interactive
Optimizer session where the model of an example is entered and solved. CPLEX> indicates the CPLEX prompt, and text
following this prompt is user input.
Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 12.6.0.0
with Simplex, Mixed Integer & Barrier Optimizers
Copyright IBM Corp. 1988, 2013 All Rights Reserved.
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. (0.00 ticks)
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)
Deterministic time = 0.00 ticks (3.38 ticks/sec)
CPLEX> display solution variables x1-x3
Variable Name Solution Value
x1 40.000000
x2 17.500000
x3 42.500000
CPLEX> quit