Professional Documents
Culture Documents
Introduction To Operations Research
Introduction To Operations Research
Outline
Intro to Operations Research (OR)
Examples of OR Problems
Mathematical Programming
Linear Programming (LP)
Examples of LP Graphical solution to simple LP Excels Solver
Sensitivity Analysis
Chulalongkorn University Manoj Lohatepanont 2006 2
Operations Research
What is Operations Research?
During World War II, British (and later US) military leaders encountered several complex problems such as radar deployment, convoy management, etc. Research on Military Operations or Military Operations Research was given birth Later became known simply as Operations Research (OR)
Chulalongkorn University
Operations Research
So what is OR?
the use of mathematical models in providing guidelines to managers for making effective decisions within the state of current information, or in seeking further information if current knowledge is insufficient to reach a proper decision.
Related Fields
Management Science, Decision Science, Systems Engineering, System Dynamics, etc.
Chulalongkorn University
Elements of OR
Mathematical Programming Game Theory Inventory Theory Project Scheduling Queuing Theory Simulation Forecasting
Chulalongkorn University Manoj Lohatepanont 2006 5
OR Applications
GPS Navigator (Shortest Path) Production Mix (Math Programming) Airline Revenue Management (Linear Programming) Portfolio Management (Math Programming) Customer Service Counter Design (Queuing Theory) Aircraft Landing Sequence (Queuing Theory)
Chulalongkorn University
Mathematical Model
What is a model?
Idealized representation of reality
Model airplanes, fashion models
Mathematical Programming
What is Mathematical Programming?
An OR technique that solves problems in which an optimal value is sought subject to specified constraints. Mathematical programming models include for example:
Linear Programming (LP) Integer Programming (IP) Dynamic Programming (DP)
Chulalongkorn University
Chulalongkorn University
Chulalongkorn University
10
Thus, the mathematical expression (model) for Galaxy Industries profit can be written as: Profit = $8S+ $5Z Note that S and Z represent products sold in dozens.
Chulalongkorn University
11
Resource Limitation
The following table describes resource required for each product and amount available per week Resource Space Ray Required (per dozen) Plastic (lb) Time (min)
Chulalongkorn University
2 3
12
Resource Limitation
From the previous table, we can formalize the information into the following mathematical expressions Plastic: Time: 2S + 1Z <= 1000 3S + 4Z <= 2400
Chulalongkorn University
13
Additional Requirements
The total number of toys produced may not exceed 700 dozen per week (marketing limit) Marketing: S + Z <= 700 The number of Space Rays may not exceed the number of Zappers by more than 350 dozen per week Product Mix: S <= Z + 350 or S Z <= 350
Chulalongkorn University
14
Physical Limitation
Galaxy Industries cannot produce negative number of toys Nonnegativity: S >= 0 Z >= 0
Chulalongkorn University
15
Chulalongkorn University
16
Profit = $8S+ $5Z 2S + 1Z <= 1000 3S + 4Z <= 2400 Z <= 700 S Z <= 350 S >= 0, Z >= 0
17
LP Model Components
Decision Variables
Quantifiable decisions being considered S and Z in our model
Objective Function
Appropriate measure of performance (e.g., profit) described
Constraints
Any restrictions on the values that can be assigned to decision variables
Chulalongkorn University Manoj Lohatepanont 2006 18
LP Model Parameters
Objective Function Coefficients
Coefficients in the objective function
Constraint Matrix
Matrix containing the entire left-hand-side of the constraints
Right-Hand-Side (RHS)
Vector containing the right-hand-side values of the constraints
Constraints Sense
Equalities or inequalities of constraints
Chulalongkorn University
19
Constraints Sense
20
LP Model Assumptions
Certainty
All parameters are fixed and known with certainty
Proportionality
The contribution of each activity to the value of the objective function and the constraint matrix coefficient is proportional to the level of activity
Additivity
Every function in an LP model is the sum of the individual contributions of the respective activities
Divisibility
Continuous level of activity allowed (non-discrete)
Chulalongkorn University
21
Optimal Solution
How many dozens of Space Rays and Zappers should Galaxy Industries produce each week in order to maximize its expected profit? The level of production that maximize Galaxy Industries profit is called the optimal solution
An optimal solution is a feasible solution that has the most favorable value of the objective function
In this case, the most favorable value is the maximum
Solution Approach
A few approaches are available
Trial-and-Error Graphical Solution Solvers
Trial-and-Error
Take time Difficult to prove optimality
Chulalongkorn University Manoj Lohatepanont 2006 23
Graphical Solution
Pros
Easy to interpret and understand Easy to prove optimality
Cons
Slow and inefficient Cannot accommodate beyond 2- or 3-dimensional problems
Chulalongkorn University Manoj Lohatepanont 2006 24
Plastic
Z 1000 950 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 50 0 Plastic: 2.0 S + 1.0 Z = 1000.0 0 27 54 81 108 135 162 189 216 243 270 297 324 351 378 405 432 459 486 513 540
Feasible Region:
The set of all points satisfying all constraints of the model
S
Chulalongkorn University
25
Plastic + Time
Z 1000 950 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 Time: 3.0 S + 4.0 Z = 2400.0 50 0 Plastic: 2.0 S + 1.0 Z = 1000.0 0 27 54 81 108 135 162 189 216 243 270 297 324 351 378 405 432 459 486 513 540
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0
With each added constraint, the feasible region can only get SMALLER or stay the same.
Chulalongkorn University Manoj Lohatepanont 2006 26
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0
Chulalongkorn University
27
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
28
Feasible Region:
The set of all points satisfying all constraints of the model
110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
30
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
31
Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
32
Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
33
(320, 360)
Optimal Solution for THIS obj. func. is: 320 dozens of Space Rays 360 dozens of Zappers
22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
34
Optimal Solution for THIS obj. func. is: 450 dozens of Space Rays 100 dozens of Zappers
0 22 44 66 88 Optimal Decisions(S,Z): (450.0, 100.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
(450, 100)
110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440
Chulalongkorn University
35
Optimal Solution for THIS obj. func. is: 0 dozens of Space Rays 600 dozens of Zappers
Optimal Decisions(S,Z): ( 0.0, 600.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
36
(350, 0)
110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S
Chulalongkorn University
37
(320, 360)
Optimal Solutions for THIS obj. func. are (450, 100) all points satisfying equation 2S + 1Z = 1000 in ranges of [320,450] Space Rays and [100,360] Zappers
0 22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S Optimal Decisions(S,Z): (320.0, 360.0) (450.0, 100.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Infeasible Problem
Payoff: 8.0 S + 5.0 Z = 4360.0 Z 600 570 540 510 480 450 420 390 360 330 300 270 240 210 180 150 120 90 60 30 0 0 22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S
Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0 Crazy Manager: 0.0S + 1.0Z >= 650.0
Chulalongkorn University
Unbounded Problem
Payoff: 8.0 S + 5.0 Z = 4360.0 Payoff: 2.0 S + 1.0 Z = 1000.0 Z Z 600 600 570 570 540 540 510 510 480 480 450 450 420 420 390 390 360 360 330 330 300 300 270 270 240 240 210 210 180 180 150 150 120 120 90 90 60 60 30 30 0 0 0 0 22 22 44 44 66 66 88 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S S
Optimal Decisions(S,Z): (320.0, 360.0) (450.0, 100.0) Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0 Mix: 1.0S - 1.0Z <= 350.0
Constraints Sense
In mathematical programming, all constraints senses must be inclusive
That is it must be either =, <= or, >=. It cannot be < or >.
Solvers
Numerous commercial solvers are available for solving mathematical programming These solvers utilize advanced algorithms for solving mathematical programming, most notably of which is Simplex Algorithm, invented in 1947 by George Dantzig We will use Microsoft Excel extensively through out our class Other powerful solvers include for example:
CPLEX XPRESS
Chulalongkorn University
42
Excels Solver
Microsoft Excel has a standard component called Solver Excels Solver uses Simplex Algorithm to solve Math Programming problems We will now use Excel to solve our sample problem from last lecture
Chulalongkorn University
43
Model Components
Max Subject to: Plastic: Time: Marketing: S + Product Mix: Nonnegativity:
Chulalongkorn University
Profit = $8S+ $5Z 2S + 1Z <= 1000 3S + 4Z <= 2400 Z <= 700 S Z <= 350 S >= 0, Z >= 0
44
Model Components
Max Profit = $8S+ $5Z Subject to: Plastic: 2S + 1Z <= 1000 Time: Decision Variables <= 2400 . Value 3S + 4Z Obj. Func Marketing: . Func. Coeff. 700 S + Z <= Obj Product Mix: S Z <= 350 RHS Constraint Matrix Nonnegativity: S >= 0, Z >= 0
Chulalongkorn University Manoj Lohatepanont 2006 45
Enter Parameters
Chulalongkorn University
46
Chulalongkorn University
47
LP Model
Chulalongkorn University
48
Invoking Solver
If Solver does not exist, select Add-Ins and then check an empty box in front of Solver. Click OK.
Chulalongkorn University
49
Solver Window
Chulalongkorn University
50
Chulalongkorn University
51
Chulalongkorn University
52
Enter Constraints
Chulalongkorn University
53
Add Constraints
Chulalongkorn University
54
Options
Chulalongkorn University
55
Ready to Solve
Chulalongkorn University
56
Done!
Chulalongkorn University
57
View Solution
Chulalongkorn University
58
Verify Solution
Payoff: 8.0 S + 5.0 Z = 4360.0 Z 600 570 540 510 480 450 420 390 360 330 300 270 240 210 180 150 120 90 60 30 0
(320, 360)
Optimal Solution for THIS obj. func. is: 320 dozens of Space Rays 360 dozens of Zappers
0 22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
59
Chulalongkorn University
60
Detailed Report
Chulalongkorn University
61
Binding Constraints
Payoff: 8.0 S + 5.0 Z = 4360.0 Z 600 570 540 510 480 450 420 390 360 330 300 270 240 210 180 150 120 90 60 30 0
Chulalongkorn University
62
Sensitivity Analysis
In reality, oftentimes the parameters are not known with certainty Sensitivity analysis attempts to answer what-if questions when one of the parameters change within certain boundary There are 2 major types of sensitivity analysis:
Sensitivity of objective function coefficients Sensitivity of RHS coefficients
Chulalongkorn University
63
Chulalongkorn University
64
Sensitivity Report
Chulalongkorn University
65
Range of Optimality
Range of optimality is the range of values for an objective function coefficient in which the optimal solution remains unchanged No other simultaneous changes are allowed The optimal solution remains unchanged BUT the objective function value changes
Chulalongkorn University
66
Range of Optimality
Chulalongkorn University
67
(320, 360)
Optimal Solution for THIS obj. func. is: 320 dozens of Space Rays 360 dozens of Zappers
0 22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Chulalongkorn University
68
3.75 S + 5 Z = 3000
(320, 360)
10 S + 5 Z = 5000
22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S
Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Space Rays profit can change from $3.75 to $10 without affecting original optimal solution.
Manoj Lohatepanont 2006 69
Chulalongkorn University
8 S + 10.67 Z = 6402
(320, 360)
8 S + 4 Z = 4000
22 44 66 88 110 132 154 176 198 220 242 264 286 308 330 352 374 396 418 440 S
Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
Zappers profit can change from $4 to $10.67 without affecting original optimal solution.
Manoj Lohatepanont 2006 70
Chulalongkorn University
Reduced Cost
Reduced cost of a variable is the amount the objective function coefficient has to change before that variable becomes part of the optimal solution
If there are no upper bounds
Variables that have non-zero values in the optimal solution (i.e., is part of the solution), will have zero reduced costs Variables that have zero values (i.e., is NOT part of the solution) in the optimal solution, may have non-zero reduced costs
Chulalongkorn University Manoj Lohatepanont 2006 71
Reduced Cost
Chulalongkorn University
72
Range of Feasibility
Range of feasibility of a constraint is the range in which its RHS coefficient can vary without affecting its shadow price
Chulalongkorn University
74
Optimal Decisions(S,Z): (320.0, 360.0) Plastic: 2.0S + 1.0Z <= 1000.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0
From solver, this constraint has a shadow price of $3.4 and range of feasibility from 400 to +100.
Manoj Lohatepanont 2006 75
Chulalongkorn University
Optimal Decisions(S,Z): (400.0, 300.0) Plastic: 2.0S + 1.0Z <= 1100.0 Time: 3.0S + 4.0Z <= 2400.0 Marketing: 1.0S + 1.0Z <= 700.0 Mix: 1.0S - 1.0Z <= 350.0 : 2.0S + 1.0Z <= 1000.0
An increase of 100 in the RHS coefficient leads to an increase of $3.4 * 100 = $340 in objective function value.
Manoj Lohatepanont 2006 76
Chulalongkorn University
Reduced Cost
amount the objective function value will change per one unit increase of a variable
Range of Optimality
range of values for an objective function coefficient in which the optimal solution remains unchanged
RHS Coefficient
Shadow Price
change to the objective function value per unit change of a constraints RHS coefficient
Range of Feasibility
range in which a constraints RHS coefficient can vary without affecting its shadow price
Manoj Lohatepanont 2006 77
Chulalongkorn University
Chulalongkorn University
78
Chulalongkorn University
79
Chulalongkorn University
80
Chulalongkorn University
81
Galaxy is required to supply at least 200 Zappers to its distributor each week Marketing Requirements
Total production must exceed 1000 dozens Space Ray should account for exactly 50% of total production, and No other models should account for more than 40% of total production
Chulalongkorn University Manoj Lohatepanont 2006 83
Chulalongkorn University
84