Optimization Using Matlab
Optimization Using Matlab
Mamata Jenamani
Associate Professor
Department of Industrial engineering and Management
IIT Kharagpur
General Structure of a Mathematical
Programming (Optimization) Problem
Doors Windows
Unit Profit $300 $500
Hours
Hours Used Per Unit Produced Available
Plant 1 1 0 4
Plant 2 0 2 12
Plant 3 3 2 18
A linear programming problem
Formulate the problem
3 D + 2 W = 18
8
D=4
6 2 W =12
Feasible
region
2
0 2 4 6 8 D
Production rate for doors
Finding the Optimal Solution
Production rate W
for windows
8
Feasible
4
region
P = 1500 = 300D + 500W
0 2 4 6 8 10 D
Production rate for doors
Linear Programming in Matlab
Input Arguments
Output Arguments
Algorithms
A simplex algorithm, Active-set algorithm (Medium scale problems, dense matrix
structure)
For
• Primal-dual interior details
point see:
method docscale
(Large linprog
problems, sparse matrix structure)
Linear Programming in Matlab
Setting Options
>>optimset(’linprog’) %To see the options for linprog
% General format to set the options
>>options=optimset(’ParameterName1’,value1,’ParameterName2’,val
ue2,..)
% Example
>>options=optimset(’LargeScale’,’off’,’Simplex’,’off’)
Matlab Function
Algorithms Used
1. Active-set strategy (Medium-Scale),
2. Interior reflective Newton method coupled with a trust region
method (Large scale problem)