IM - BUMA 30083 - Fundamentals of Prescriptive Analytics (BSBA-MM TG 4-1) - Week 5
IM - BUMA 30083 - Fundamentals of Prescriptive Analytics (BSBA-MM TG 4-1) - Week 5
WEEK 5
MODELING AND SOLVING LP PROBLEMS IN A SPREADSHEET
Overview:
Very few real-world LP problems involve only two decision variables. So, the graphical
solution approach is of limited value in solving LP problems. However, the discussion of
two-variable problems provides a basis for understanding the issues involved in all LP
problems and the general strategies for solving them.
Every solvable LP problem has a feasible region, and an optimal solution to the
problem can be found at some extreme point of this region (assuming the problem is not
unbounded). This is true of all LP problems regardless of the number of decision variables.
Although it is fairly easy to graph the feasible region for a two-variable linear programming
problem, it is difficult to visualize or graph the feasible region of an LP problem with three
variables because such a graph is three-dimensional. If there are more than three variables,
it is virtually impossible to visualize or graph the feasible region for an LP problem because
such a graph involves more than three dimensions.
In this chapter, we are going to learn how to solve LP problems using spreadsheets.
Module Objectives:
Course Materials:
The importance of LP (and optimization in general) is underscored by the fact that all
major spreadsheet packages come with built-in spreadsheet optimization tools called
solvers. Microsoft Excel can be used to illustrate how spreadsheet solvers can solve
optimization problems.
Without using a spreadsheet, we can still solve optimization problems by using
specialized mathematical programming packages like:
LINDO (Lindo Systems, Inc.) - https://www.lindo.com/
CPLEX Optimizer (IBM) - https://www.ibm.com/analytics/cplex-optimizer
Xpress-MP
Researchers and businesses use these packages to solve extremely large problems
that do not fit conveniently in a spreadsheet.
Learn more:
Howie owns and operates Blue Ridge Hot Tubs, a company that sells two models of
hot tubs: the Aqua-Spa and the Hydro-Lux. Howie purchases prefabricated fiberglass hot
tub shells and installs a common water pump and the appropriate amount of tubing into
each hot tub.
Every Aqua-Spa requires 9 hours of labor and 12 feet of tubing; every Hydro-Lux
requires 6 hours of labor and 16 feet of tubing. Demand for these products is such that each
Aqua-Spa produced can be sold to generate a profit of $350, and each Hydro-Lux produced
can be sold to generate a profit of $300. The company expects to have 200 pumps, 1,566
hours of labor, and 2,880 feet of tubing available during the next production cycle. The
problem is to determine the optimal number of Aqua-Spas and Hydro-Luxes to produce in
order to maximize profits.
POLYTECHNIC UNIVERSITY OF THE PHILIPPINES 3
The following LP model was formulated in Lesson 2. In this model, X1 represents the
number of Aqua-Spas to be produced, and X2 represents the number of Hydro-Luxes to be
produced:
Learn from:
The following four steps summarize what must be done to implement any LP problem
in a spreadsheet:
Learn more:
1.4. A Spreadsheet Model for the Blue Ridge Hot Tubs Problem
Learn from:
1. Objective cell
2. Variable cells
3. Constraint cells
Learn more:
Risk Solver Platform offers a number of analytical tools (for example, Sensitivity
analysis, Optimization, Simulation, Discriminant Analysis, Decision Trees).
Learn more:
Excel’s built-in Solver is easy to use and is capable of solving most of the optimization
problems. However, it lacks a number of powerful and useful features offered by Risk Solver
Platform.
To use the built-in Solver, you must identify the objective cell (and the desired direction
of optimization), the variables cells, and any constraints. The Solver dialog also allows you
to select a solving method (analogous to selections available on the Engine tab in Risk
Solver’s task pane). You then click the Solve button to solve the problem.
For each of the standard optimization problems, we will identify the objective cell (and
whether it should be maximized or minimized), the variable cells, and the constraints. Using
that information, you can use either Excel’s built-in Solver or Risk Solver Platform to solve
the problems.
To achieve the end result of a logical spreadsheet design, your modeling efforts should
be directed toward the following goals:
Communication
Reliability
Auditability
Modifiability
The data and assumptions upon which we build spreadsheet models can
change frequently. A well-designed spreadsheet should be easy to change or enhance
in order to meet dynamic user requirements.
Some practical suggestions and guidelines for creating effective spreadsheet models
are:
Organize the data, then build the model around the data.
Do not embed numeric constants in formulas.
Things which are logically related should be arranged in close physical
proximity to one another and in the same columnar or row orientation.
A design that results in formulas that can be copied is probably better than one
that does not.
Column or row totals should be in close proximity to the columns or rows being
totaled.
The English-reading human eye scans left to right, top to bottom.
Use color, shading, borders, and protection to distinguish changeable
parameters other elements of the model.
Use text boxes and cell comments to document various elements of the model.
Learn more:
For example, LP might be used to determine how the various components of a job
should be assigned to multipurpose machines in order to minimize the time it takes to
complete the job. As another example, a company might receive an order for several items
that it cannot fill entirely with its own production capacity. In such a case, the company must
determine which items to produce and which items to subcontract (or buy) from an outside
supplier.
There are numerous problems in the area of finance for which various optimization
techniques can be applied. These problems often involve attempting to maximize the return
on an investment while meeting certain cash flow requirements and risk constraints.
Alternatively, we may want to minimize the risk on an investment while maintaining a certain
level of return.
Many transportation and logistics problems businesses face fall into a category of
problems known as network flow problems.
companies must determine the least costly mix of chemicals and other products to blend
together to produce different types of fertilizer. The following is another example of a
common blending problem faced in the U.S. agricultural industry, which annually produces
goods valued at approximately $200 billion.
Numerous business problems involve decisions that have a ripple effect on future
decisions. Many financial decisions involve multiple time periods because the amount of
money invested or spent at one point in time directly affects the amount of money available
in subsequent time periods. In these types of multiperiod problems, it can be difficult to
account for the consequences of a current decision on future time periods without an LP
model. The formulation of such a model is illustrated next in an example from the world of
finance.
Managers are often interested in determining how efficiently various units within a
company operate. Similarly, investment analysts may be interested in comparing the
efficiency of several competing companies within an industry. Data Envelopment Analysis
(DEA) is an LP-based methodology for performing this type of analysis. DEA determines
how efficiently an operating unit (or company) converts inputs to outputs when compared
with other units.
Source:
Activities/Assessment:
1. In creating the spreadsheet models for the problems, cells in the spreadsheets had to
be reserved to represent each of the decision variables in the algebraic models. We
reserved these cells in the spreadsheets by entering values of zero in them. Why didn’t
we place some other value or formula in these cells? Would doing so have made any
difference?
2. Compare and contrast MS Excel’s built-in solver platform and Risk Solver platform.
Which of these two do you think is more sophisticated to use and why?
5. Identify and explain briefly the different business problems and decisions that can be
addressed with linear programming.