Professional Documents
Culture Documents
GRAPHING
GRAPHING
LINEAR PROGRAMMING 1
MODULE 4
GRAPHING
GRAPHING
Linear Programming
LINEAR PROG
Linear Programming (LP) is a widely used
mathematical technique designed to help managers
in planning and decision making relative to resource
allocation.
LP Properties:
First: Problems seek to maximize or minimize an
objective (profit, production or cost).
Second: Restriction or constraints limit the
degree to which the objective can be obtained.
We want to maximize or minimize the objective
function subject to limited resources (the
constraints).
Third: There must be alternatives (combinations
of resources) available.
Fourth: The objective and constraints in linear
programming problems must be expressed in
terms of linear equations or inequalities.
GRAPHING
GRAPHING
Linear Programming Assumptions
ASSUMPTIONS
Linearity: the impact of decision
variables is linear in constraints
and objective function
FORMULATION
Product mix problem - Beaver Creek Pottery
Company LP Model Formulation
How many bowls and mugs should be produced to
maximize profits given labor and materials
constraints?
Product resource requirements and unit profit:
GRAPHING
GRAPHING
GRAPHING
GRAPHING
LP MODEL
Complete Linear Programming Model:
FLAME FLAIR
The objective is to
Maximize profit
The constraints are
1. The hours of carpentry time used cannot exceed 240 hours
per week
2. The hours of painting and varnishing time used cannot
exceed 100 hours per week
The decision variables representing the actual decisions we will
make are
X1 = number of tables to be produced per week
X2 = number of chairs to be produced per week
Formulate the LP
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Problem
LP PROBLEM
Suppose, X1 = number of tables to be produced
X2 = number of chairs to be produced
9
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
A Simple Maximization Problem
MAXIMIZATION
• Linear optimization models are also known as linear programs
• Linear programming:
• A problem-solving approach developed to help managers make better decisions
• Numerous applications in today’s competitive business environment
• For instance, GE Capital uses linear programming to help determine optimal lease
structuring
GRAPHING
GRAPHING
ILLUSTRATION
Par, Inc. - A small manufacturer of golf equipment and supplies Operations involved in manufacturing a golf bag:
Management has decided to move into the market for medium- and Cutting and dyeing the material
high-priced golf bags Sewing
Par’s distributor to buy all the produced bags by the end of third month Finishing (inserting umbrella holder, club separators, etc.)
Inspection and packaging
• Table 11.1: Production Requirements Per Golf Bag
GRAPHING
GRAPHING
Estimated total time available for the next three months to
ESTIMATED
perform different operations:
Constraint 3: ≤
1S + D ≤ 708
Constraint 4: ≤
S + D ≤ 135
GRAPHICAL
Graphical solution is limited to linear 1. Set up objective function and
programming models containing only constraints in mathematical
two decision variables (can be used format
with three variables but only with
great difficulty). 2. Plot the constraints
Graphical methods provide
visualization of how a solution for a
linear programming problem is 3. Identify the feasible solution space
obtained.
Graphical methods can be classified
under two categories: 4. Plot the objective function
1. Iso-Profit(Cost) Line Method
2. Extreme-point evaluation Method.
5. Determine the optimum solution
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
MAXIMIZATION
Graphical Solution of a Maximization Model
Coordinate Axes
GRAPHICAL
Clay Constraint Area
GRAPHING
GRAPHICAL
Graphical Solution of a
Maximization Model
Both Constraints
FEASIBLE
Maximization Model
Feasible Solution Area
Alternative objective function lines for profits, Z, of $800, $1,200, and $1,600
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Graphical Solution of a
Maximization Model
Optimal Solution
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Corner Point Solutions
SLACK VARIABLES
Slack Variables
GRAPHING
COMPLETE
Complete Linear
Programming Model in
Standard Form
ISOPROFIT
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
ISOPROFIT
Isoprofit Line Solution Method
We suppose profit equal to some arbitrary but
small dollar amount. For the Flair Furniture
problem we may choose a profit of $210.
$210 = 7X1+5X2
We then find (X1, X2) ={(0, 42); (30, 0)}
$280=7X1+5X2
We find (X1, X2) = {(0, 56); (40,0)}
33
Corner Point Solution Method
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
CORNER POINT
Alternatively, we can solve the LP
problem by using corner point method.
It involves looking at every corner point
of the feasible region. Optimal solution
will lie at one (or more) of them.
34
CORNER POINT
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Corner Point Solution Method
In point (4), we need to find the value in the intersection point of two
constraints.
4X1 + 3X2 = 240 [Carpentry equation]
2X1 + 1X2 = 100 [Painting equation]
Because point (4) produces the highest profit of any corner point, the
product mix of X1=30 tables and X2=40 chairs is the optimal solution to
Flair Furniture’s problem.
Summary of Graphical Solution Methods
SUMMARY
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
IN EXCEL
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Linear Programming in Excel
LP
One of Excel’s useful features is the ability
to solve linear programming problems
(especially those beyond our graphical
abilities).
The feature is invoked by creating a
spreadsheet containing the objective
function and constraints, selecting Tools
from the main menu, and Solver from the
submenu
LP IN EXCEL
Linear Programming in Excel - Part 2
GRAPHING
GRAPHING
The top view shows formulas and the bottom view shows initial
calculations.
LP IN EXCEL
GRAPHING
GRAPHING
Linear Programming in Excel - Part 3
Once the basic set of equations has been entered, launch
Solver and fill in the dialog boxes with references to your
sheet.
Target cell - The objective function value (E52)
Equal to - Choose max or min based on the problem
By changing cells - The decision variables (C52:D52)
Subject to the constraints - Add all constraints one at a time
by referencing their function values (e.g., the amount of
corn used, E47 must be less than the amount of corn on
hand, G47)
Once all constraints have been entered, choose Options and
check the boxes for Assume Linear Model and Assume
Non-Negative.
Finally, choose Solve and wait for Excel to work its magic
GRAPHING
GRAPHING
SOLVER OUTPUT
Solver Output Reports – Part 1
GRAPHING
GRAPHING
GRAPHING
Microsoft Excel 8.0e Answer Report
Worksheet: [P/OM.xls]Sheet1 The value of the
objective function at the
Report Created: 7/28/2000 11:03:04 AM
optimal solution
Target Cell (Max)
Cell Name Original Value Final Value
$E$52 Profit $20.00 $280.00 The optimal values
Adjustable Cells of the decision
Cell Name Original Value Final Value variables
$C$52 White Lightning 1 10
$D$52 Rotgut 1 20
Constraints
Cell Name Cell Value Formula Status Slack
$E$47 Corn 40 $E$47<=$F$47 Binding 0
$E$48 Sugar 70 $E$48<=$F$48 Binding 0
$E$49 Jugs 30 $E$49<=$F$49 Not Binding 20
$E$50 Hours 70 $E$50<=$F$50 Not Binding 2
GRAPHING
GRAPHING
GRAPHING
GRAPHING
Microsoft Excel 8.0e Sensitivity Report
Worksheet: [P/OM.xls]Sheet1 Increases or decreases within these ranges will result in the same
Report Created: 7/28/2000 11:03:05 AM product mix (but a different objective function value).
Adjustable Cells
Final Reduced Objective Allowable Allowable
Cell Name Value Cost Coefficient Increase Decrease
$C$52 White10 0 12 4 0
$D$52 Rotgut 20 0 8 0 2
Constraints
Final Shadow Constraint Allowable Allowable
Cell Name Value Price R.H. Side Increase Decrease
$E$47 Corn 40 - 40 6.67 5
$E$48 Sugar 70 4 70 2 10
$E$49 Jugs 30 - 50 1E+30 20
$E$50 Hours 70 - 72 1E+30 2
ACTIVITY 3
GRAPHING2
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
EXERCISES
2 A winemaking company has recently acquired a 110 hectares piece
of land. Due to the quality of the sun and the region’s excellent
climate, the entire production of Sauvignon Blanc and Chardonnay
grapes can be sold. You want to know how to plant each variety in
the 110 hectares, given the costs, net profits and labor requirements
according to the data shown below:
Suppose that you have a budget of US$10,000 and an availability of 1,200 man-
days during the planning horizon. Formulate and solve graphically a Linear
Programming model for this problem. Clearly outline the domain of feasible
solutions and the process used to find the optimal solution and the optimal value.
EXERCISES 3
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
3 A company produces two different products. One of them needs 1/4 of an hour
of assembly work per unit, 1/8 of an hour in quality control work and US$1.2 in
raw materials. The other product requires 1/3 of an hour of assembly work per
unit, 1/3 of an hour in quality control work and US$0.9 in raw materials. Given
the current availability of staff in the company, each day there is at most a total of
90 hours available for assembly and 80 hours for quality control. The first product
described has a market value (sale price) of US$8.0 per unit. In addition, the
maximum amount of daily sales for the first product is estimated to be 200 units,
without there being a maximum limit of daily sales for the second product.
Formulate and solve graphically a Linear Programming model that will allow the
company to maximize profits.
Decision Variables:
Maximize (9-1.2)X_{1}+(8-0.9)X_{2}=7.8X_{1}+7.1X_{2}
09611192792
jojo_conti@yahoo.com
END
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING
GRAPHING