Professional Documents
Culture Documents
01 Bcon141 Mod3 Lesson10 LinearProgramming
01 Bcon141 Mod3 Lesson10 LinearProgramming
Business Economics
Module 4: Business Optimization using
Linear Programming
Learning objectives:
- Define Linear Programming
- Differentiate the various assumptions of Linear Programming
- Determine each of the components of a Linear Programming model
- Solve Linear Programming problems
Bcon 141
Outline
10.1 Linear Programming: Definition and Properties
10.2 LP Model Components
10.3 Steps of Model Formulation
10.4 Finding Solution
10.4.1 Graphical Solution
10.4.2 Mathematical Solution
10.4.3 Computer Solution using Excel Add-ins: Solver and OM/QM
10.5 Special Cases of LPP
Bcon 141
Linear Programming
- it is a model that consists of linear relationships representing a firm’s decision(s),
given an objective and resource constraints.
Many major decisions faced by a manager of a business focus on the best way to
achieve the objectives of the firm, subject to the restrictions placed on the manager
by the operating environment.
These restrictions can take the form of limited resources, such as time, labor, energy,
material, or money; or they can be in the form of restrictive guidelines, such as a
recipe for making cereal or engineering specifications.
1. Proportionality
- implies that the marginal rate of contribution to the objective for each variable is
assumed to remain constant throughout the entire range of activity levels in the
problem.
This means, if the product contributes P20 towards the profit, then the total
contribution would be equal to 20x1, where x1 is the number of units of the product.
For example:
5 units of the product = P100
10 units of the product = P200
Bcon 141
2. Additivity
- implies that the contribution of the variables to the objective is assumed to be the
sum of their individual weighted contributions.
The total value of the objective function is equal to the sum of the contributions of
each variable to the objective function.
3. Divisibility
- means that the variables can take on any non-negative value including fractional
values (the variables are said to be continuous or divisible, as opposed to integer or
discrete values).
For example:
10 1/4 maple tables
5.5 cherry tables
Bcon 141
4. Certainty
- means that the problem is assumed to have no probabilistic elements (such as
changes on input prices for labor, raw materials, etc.).
For example:
The net profit per cherry table is 2,000, but this value depends upon the tables’ cost,
the cost of materials, and the sale price wherein all of which could be random
variables.
Bcon 141
2. Objective function
- a linear mathematical relationship describing an objective of the firm, in terms of
decision variables
- this function is to be maximized or minimized.
3. Constraints
– requirements or restrictions placed on the firm by the operating environment, stated
in linear relationships of the decision variables.
4. Parameters
- numerical coefficients and constants used in the objective function and constraints.
Resource Requirements
Bowl 1 4 40
Mug 2 3 50
Bcon 141
1. Graphical Solution
2. Mathematical Approaches:
1.1 Substitution
- Substitute one variable in terms of the other equation.
1.2 Elimination (via Addition or Subtraction)
- Eliminate one of the variables by adding/subtracting the equations
then find the value of the remaining variable.
Bcon 141
Graphical Solution
- one of the most used solution for solving Linear Programming problems which only
involves two decision variables.
- it solves the problem by plotting the functions and constraints in a graph and
determine the most feasible solution.
- “geometric approach”
Bcon 141
Infeasible Solution
- Solution violates at least one of the constraints
Bcon 141
Feasible Solution
Example: x1 = 5 bowls
x2 = 10 mugs
Z = P40x1 + P50x2 = P700
Infeasible Solution
Example: x1 = 10 bowls
x2 = 20 mugs
Z = P40x1 + P50x2 = P1400
2. Plot the objective function; then, move this line out from the origin to locate the
optimal solution point.
3. Solve simultaneous equations at the solution point to find the optimal solution
values.
Bcon 141
3. Substitute these values into the objective function to find the set of values that
results in the maximum Z value.
Bcon 141
X2 are mugs
X1 are bowls
Bcon 141
Feasible region
-the set of all points that satisfy all the
constraints of the model(s).
Alternative objective function lines for profits, Z, of P800, P1,200, and P1,600
Point B coordinates:
x1 = 24
x2 = 8
Bcon 141
Mathematical Solutions
Substitution
- Substitute one variable in terms of the other equation.
Right click on the Letter “B” at the top of the graph and click “Delete”.
Bcon 141
1. Click anywhere on
the graph.
3. Click on the
“Select Data…”
1 2 menu on the bottom
part of the window
that popped up.
3
Bcon 141
1
Bcon 141
3
3. Empty the “Series
X values:”
Bcon 141
1. So we’re done
with the first
constraint and now
we will incorporate
the second
constraint (Point C
and Point D) on the
graph. Start by
clicking “Add”
1
2. Just follow the
same steps (from
the previous four
slides) on
constructing the
graph of the first
constraint.
Bcon 141
Once done, you should have the same graph as shown below. Just click “OK” to finish
setting up the graph of both constraints.
Bcon 141
We need to reduce the intervals of the data points in each axis in order to determine
the coordinates of the optimal point (point of intersection).
1. Start on the x-
axis. Right Click on
any of the values (0
– 45) on the x-axis
and select “Format
Axis” on the menu.
1
Bcon 141
1. Change the
value of the “Major”
submenu under the
“Units” menu from
“5.0” to “1.0” and
press enter on the
keyboard in order
to have a detailed
scaling on the x-
axis.
Enlarge the graph and we can now determine the coordinates of the optimal point
(24,8).
x1 (x-axis): 24
x2 (y-axis): 8
Bcon 141
Plug in the data (based on the given of the problem) with the following format.
Non-negativity Constraint
Objective Function
Constraints
Highlight the
resulting cells of
the objective and
the constraints
(B11, B12, B13)
and insert the
formula shown in
the picture. After
the MMULT,
highlight the given
of the objective and
the constraint
(B2:C7) and after
the TRANPOSE
highlight the
resulting values of
x1 and x2
(B15:C15).
Bcon 141
Once done typing the formula, press “Ctrl + Shift + Enter” on the keyboard to have
the following output.
Bcon 141
Go to “Data” tab and on the rightmost menu, click on “Solver” and the Solver window
will pop-up.
1
2
Bcon 141
Click “OK” on the window that will pop-up and you now have the answer.
Max Profit =
1,360
Optimal Combination: x1=24, x2=8
Bcon 141
bit.ly/EXCELOMQM-WEISSv4
Once finished downloading, double click the file and follow the installation process.
Bcon 141
1. After double clicking the file, a window will pop-up, Just click “Next”
Bcon 141
2. Click “Next”
Bcon 141
3. Choose 32 bit, if there’s an error that will pop-up saying that it is not compatible,
then choose 64 bit and then click “Next”
Bcon 141
4. Click “Next”
Bcon 141
5. And lastly, click “Next”. After clicking the Next button, the installation window will
disappear, and Excel OM/QM is already installed. You can now enable the add-in by
following the same steps of the Solver Add-in.
Bcon 141
Open a new excel workbook, go to File > Options > Add-ins > Select “Excel Add-ins”
on the Manage Menu and click “Go…”. This window will pop-up. Make sure to check
both Excel OM/QM and Solver Add-in and click “OK”.
Bcon 141
Once already enabled, a new tab named “Excel QM” will appear.
Bcon 141
To use the add-in, go to Excel QM tab and click “By Chapter”, then click “Chapters
2,3,4; Linear Programming” menu.
1
2
3
Bcon 141
A window will pop-up. Fill in the needed information and once done, click “OK”.
Input the given of the problem on the orange highlighted areas. Leave the other items
“as is”.
In order to solve the problem, OM/QM also utilizes the Solver Add-in. To solve, go to
“Data” tab, click “Solver” and directly click the “Solve” button.
1 2
3
Bcon 141
Another solver window again will pop-up, just click “OK” and you now have the
answer.
2. Infeasible solutions
Every possible solution
violates at least one constraint:
3. Unbounded solutions
The value of the objective
function increases indefinitely:
References:
Taylor, B. W. (2016). Introduction to Management Science. Pearson Education, Inc.
Stevenson, W. and Ozgur, C. (2007). Introduction to Management Science with Spreadsheets. The McGraw-Hill
Companies, Inc.
Fabry, J. (2003). Operations Research. University of Economics Prague - Faculty of Informatics and Statistics
THANK YOU!