Académique Documents
Professionnel Documents
Culture Documents
Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 12.4.0.0 with Simplex, Mixed Integer & Barrier Optimizers
CPLEX> help
Enter enough characters to uniquely identify commands & options. Commands can be entered partially (CPLEX will
prompt you for further information) or as a whole.
Example:
Min5 x−3 y
x+ 2 y ≥ 4
2x−y≥0
x−3 y ≥−13
x≥0
y ∈ {0, 1, … ,10 }
CPLEX> enter
Enter name for problem: Ex1
Enter new problem ['end' on a separate line terminates]:
minimize
5x-3y
subject to
c1: x+2y >= 4
c2: 2x-y >= 0
c3: x - 3y >= -13
bounds
0 <= y <= 10
integer
y
end
CPLEX> mipopt
Tried aggregator 1 time.
Reduced MIP has 3 rows, 2 columns, and 6 nonzeros.
Reduced MIP has 0 binaries, 1 generals, 0 SOSs, and 0 indicators.
Probing time = 0.00 sec.
Tried aggregator 1 time.
Presolve time = 0.00 sec.
Found feasible solution after 0.00 sec. Objective = 20.0000
Probing time = 0.00 sec.
MIP emphasis: balance optimality and feasibility.
MIP search method: dynamic search.
Parallel mode: deterministic, using up to 4 threads.
Root relaxation solution time = 0.00 sec.
Nodes Cuts/
Node Left Objective IInf Best Integer Best Bound ItCnt Gap
* 0+ 0 20.0000 2 ---
0 0 -2.6000 1 20.0000 -2.6000 2 113.00%
* 0+ 0 -2.5000 -2.6000 2 4.00%
0 0 cutoff -2.5000 2 0.00%
Elapsed real time = 0.00 sec. (tree size = 0.00 MB, solutions = 2)
CPLEX>
CPLEX> display
Display Options:
minimize
5x-3y
subject to
c1: x+2y >= 4
c2: 2x-y >= 0
c3: x - 3y >= -13
bounds
0 <= y <= 10
integer
y
end
2. Cplex
3. CPLEX>read MIP1.lp
4. CPLEX>mipopt
1. d:
2. cd “D:\Dropbox\Sachin\Teaching\FPM\Courses\OR\Applied Optimization\LSO-2014-15\cplex test\Experiment”
3. D:\Dropbox\Sachin\Teaching\FPM\Courses\OR\Applied Optimization\LSO-2014-15\cplex test\Experiment>cplex
4. CPLEX>read FRModel50301.lp (Model for Freight Allocation with Lane cost balancing constraint – 50 lane, 30 career)
5. CPLEX>mipopt