WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 2 Introduction to Linear Programming
Last Class Introduction to Operations Research Examples of OR in forestry Introduction to mathematical models –Objective function, decision variables, constraints Sept 7, 2012Wood Saba Vahid2
Example: Custom Cabinets company Use excess capacity for 2 new products: Pine desks & Alder hutches Has three departments that are partially committed to producing existing products Wants to determine how many units of each new product can be produced each week by using the excess capacity of departments to generate the highest profits Sept 7, 2012Wood Saba Vahid3 DepartmentCapacity per unitAvailable capacity per week Pine deskAlder hutch Solid wood Panel00.25 Finishing Profit per unit $40$50 Objective Decision variableConstraints
Maximize:x 1 = number of desks/week 40 x x 2 x 2 = number of hutches/week Formulating the Linear Program (LP) What do you want to maximize or minimize? Profits What are the constraints? Available capacity Subject to: 0.25x 1 <=12(Solid Wood Capacity) 0.20x 2 <=5(Panel Capacity) 0.25x x 2 <=18(Finishing Capacity) x 1 >=0 x 2 >=0 Sept 7, 20124Wood Saba Vahid Linear
Note that because of the inequalities there are many feasible solutions. You have to find the best one. Maximize: $40x 1 + $50x 2 Subject to: 0.25x 1 <=12(Solid Wood Capacity) 0.20x 2 <=5(Panel Capacity) 0.25x x 2 <=18(Finishing Capacity) x 1 >=0 x 2 >=0 Solving the LP by trial and error Sept 7, 20125Wood Saba Vahid Try x 1 = 10, x 2 = 5 Z=$650 All constraints are satisfied Custom Cabinet LP1
Matrix format for LP Sept 7, 20126Wood Saba Vahid Custom Cabinet LP2
Sept 7, 2012Wood Saba Vahid7 Feasible Region Custom Cabinet LP2
Sept 7, 2012Wood Saba Vahid8 Custom Cabinet LP2 Z=1000 Z=2000 x 1 = * * x 2 =18 x 2 =12
Example: Whitt Window Company (prob ) Has three employees Makes two types of windows: wood-framed and aluminium-framed Profits per frame: $180 for wood-framed, $90 for aluminum-framed Dough makes a maximum of 6 wood frames per day Linda makes a maximum of 4 aluminium frames per day Bob forms and cuts a maximum of 48 ft 2 of glass per day Each wood-framed window uses 6 ft 2 glass Each aluminum-framed window uses 8 ft 2 glass How many windows per day to make in order to maximize profits? Sept 7, 2012Wood Saba Vahid9 Objective Decision variables Constraints Whitt Windows LP
Next Week Solving an LP with Excel Solver Simplex Algorithm Sept 7, 2012Wood Saba Vahid10