LP Definition and Introduction To Graphical Solution Active Learning - Module 2
LP Definition and Introduction To Graphical Solution Active Learning - Module 2
Graphical Solution
Active Learning – Module 2
The following is a solution to the problem (there may be more than one
correct solution)
1.- Determination of the decision variables
xA = # of hours that student A should spend in preparing the report
xC = # of hours that student C should spend in preparing the report
2.- Determination of the objective function
Maximize grade on report (can you think of another objective function?)
Let z = grade on the report (effective number of pages)
Factors: number of pages, number of errors(converted to page units)
Total number of pages = (pages per hour produced by A)*(number of hours spent by A in the assignment) +
(pages per hour produced by B)*(number of hours spent by B in the assignment) = 4(pages/hr)XA(hrs) +
2.5(pages/hr)XC(hrs)
Pages subtracted because of errors: Number of errors/5(errors/page) = (pages/hour)(hrs) (errors/page)
(1/5pages/error) = [4(pages/hr)XA(hrs) 3(errors/page)+ 2.5(pages/hr)XC(hrs)1(error/page)](0.2 page/error)
Maximize z = 4XA + 2.5XC-(2.4 XA + 0.5XC) = 1.6XA + 2.0XC
Solution (cont.)
2.- Determination of Constraints
Number of errors not to exceed (less than) 80
Number of errors = 4(pages/hr)X A(hrs) 3(errors/page)+ 2.5(pages/hr)X C(hrs)1(error/page) = 12
XA + 2.5XC 80
Total number of Hours available to perform the task (8) = X A + XC 8
Number of Hours available for C to perform the task (6)= X C 6
Non-negative values for the decision variables: X A, XC 0
Final formulation of the problem
Maximize z = 1.6XA + 2.0XC
Subject to:
12 XA + 2.5XC 80
XA + X C 8
XC 6
X A, X C 0
Definition of a Linear Programming Problem
The previous model is a linear programming problem
A linear programming problem (LP) is an optimization
problem for which:
1) The function to be maximized or minimized (called the objective
function) is a linear function of the decision variables.
2) The values of the decision variables must satisfy a set of constraints.
Each constraint must be a linear equation or linear inequality.
3)A sign restriction is associated with each variable. For any variable
xi , the sign restriction specifies that xi must be non-negative.
LP Assumptions
When we use LP as an approximate representation of a real-life situation,
the following assumptions are inherent:
Proportionality. - The contribution of each decision variable to the objective or
constraint is directly proportional to the value of the decision variable.
Additivity. - The contribution to the objective function or constraint for any
variable is independent of the values of the other decision variables, and the terms
can be added together sensibly.
Divisibility. - The decision variables are continuous and thus can take on
fractional values.
Deterministic. - All the parameters (objective function coefficients, right-hand
side coefficients, left-hand side, or technology, coefficients) are known with
certainty.
Examples of LP Assumptions
•Deterministic
2 •Additivity?
2 4 6 XA
Team Exercise (three minutes)
The Windsor Glass Company is planning to launch two new products. Product 1 is an
8-foot glass door with aluminum framing and Product 2 a 4x6 foot double-hung
wood-framed window
Aluminum frames are made in Plant 1, wood frames are made in Plant 2, and Plant 3
produces the glass and assembles the products. Product 1 requires some of the
production capacity in Plants 1 and 3, but none in Plant 2. Product 2 needs only
Plants 2 and 3. The marketing division has concluded that the company could sell
as much of either product as could be processed by these plants. The management
of the company wants to determine what mixture of both products would be the most
profitable. The following table provides the information available.
Production time per batch, hours Production
Product time available
Plant 1 2 per week,
hours
1 1 0 4
2 0 2 12
3 3 2 18
Profit per batch $3,000 $5,000
The Windsor Glass Company Problem
Formulation (Hillier and Liberman)
Formulation as a linear programming problem
Decision variables:
x1 = Number of batches of product 1 produced per week
x2 = Number of batches of product 2 produced per week
Objective function:
Maximize z = 3 X1 + 5X2 (in thousands of dollars)
Subject to:
x1 4 (Production Available in Plant 1)
2x2 12 (Production Available in Plant 2)
3x1+ 2x2 18 (Production Available in Plant 3)
x1, x2 0
Reddy Mikks Problem (Taha)
The Reddy Mikks company owns a small paint factory that produces both interior and
exterior house paints for wholesale distribution. Two basic raw materials, A and B, are used
to manufacture the paints.
The maximum availability of A is 6 tons a day; that of B is 8 tons a day. The daily
requirements of the raw materials per ton of interior and exterior paints are summarized in
the following table.
Constraint 1: XE + 2XI 6
Feasible
1
Region
1 2 3 4 5 6 7 E
0 + 2(0) 6
Finding the Optimal Solution
Determine the slope of the objective function (an infinite set
of straight lines-isoclines)
Select a convenient point in the feasible region
Draw the corresponding straight line (a single isocline)
Determine the direction of increase of the objective function
(we are maximizing)
Select a second point in the feasible region and simply evaluate the
objective function at that point
Follow the direction of increase until reaching the (corner)
point beyond which any increase of the objective function
would take you outside of the feasible region
Graphical Solution of the Ready
Mikks Problem
Max z = 3XE + 2XI
I Z= 9 Z = 12 An Optimal Solution is a
feasible solution that has
the most favorable value
of the objective function.
4
solution (why?)
1 2 3 4 5 6 7 E
Point 1: XE =2, XI = 0: Z = 6
Team Exercise (five minutes)
For the Ready Mikks problem, find all the corner-point feasible
solutions
Suppose that another constraint is added to the problem : XE +
XI 1, and the problem is changed from maximization to
minimization. For this new problem, find the new optimal
solution
Discuss and answer the following question: Is it possible to get
a non-convex feasible region from the addition of a linear
constraint?
Solution
I
4
Z = 2: XE =0, XI = 1
Feasible
1
Region
New
Constraint:
1 2 3 4 5 6 7 E
XE + XI 1
Assignment
For next class, graphically solve the “Report
Strategy Problem”
Definition of a convex set (region)
A set is convex if all the points of a line
segment joining any two points in the set also
fall in the set.
Examples of convex sets