Professional Documents
Culture Documents
Basic Concepts
I. Linear programming concepts:
The management of any organization regularly must make decisions about
how to allocate its resources to various activities to best meet organizational
objectives.
The resources being allocated to activities can be, for example, money,
different kinds of personnel, and different kinds of machinery and equipment.
2
I. Linear programming concepts:
The basic approach for linear programming is to formulate a mathematical
model called the linear programming model to represent the problem and then
to analyze this model.
variables,
o Objective function that expresses the overall measure of performance for the
problem
3
Management’s Discussion of the Issues
4
John Hill (president): Bill, we will want to rev up to start
production of these products as soon as we can. About
how much production output do you think we can
achieve?
5
John: Is that all?
6
John: Good. Now there’s one more issue to resolve. With this
limited production capacity, need to decide how to split it
between the two products. Do we want to produce the same
number of both products? Or mostly one of them? Or even just
produce as much as we can of one and postpone launching the
other one for a little while?
8
II. Case study: WYNDOR GLASS CO.
The Wyndor Glass Co. produces high-quality glass products, including
windows and glass doors
The company has three plants that simultaneously produce the components of
its products:
o Plant 1 produces aluminum frames and hardware
o Plant 3 produces the glass and assembles the windows and doors.
9
II. Case study: WYNDOR GLASS CO.
Top management has decided to discontinue unprofitable products and
releasing production capacity to launch the two new products:
o Door : requires production capacity in Plants 1 and 3
o If so, what should be the product mix —the number of units of each produced per
10
III. Identify the problem:
The company wanted to know: Which combination of production rates (the
number of units produced per week) for the two new products would
maximize the total profit?
11
III. Identify the problem:
Base on the three question, identifies the information it needs to gather to
conduct this study:
o Available production capacity in each of the plants.
o How much of the production capacity in each plant would be needed by each
product
12
III. Identify the problem:
Table 2.1: Summary of the information obtained as follows (p.25):
13
IV. Formulate linear programming model:
Based on the information obtained, formulating linear programming model to
represent the problem and solve the model, it will give answers to the
company in which combination of production rates for the two new products
would maximize the total profit.
14
IV. Formulate linear programming model:
Transfer data in figure 2.1 to the excel spreadsheet as follows:
15
IV. Formulate linear programming model:
Based on the three key questions needed to be answer to begin the process of
using the spreadsheet to formulate a mathematical model.:
o What are the decisions to be made? > The decisions to be made are the
production rates (number of units produced per week) for the two new
products.
o What are the constraints on these decisions? > The constraints on these decisions
are that the number of hours of production time used per week by the two
products in the respective plants cannot exceed the number of hours available.
o What is the overall measure of performance for these decisions? > The overall
measure of performance for these decisions is the total profit per week from
the two products.
16
IV. Formulate linear programming model:
Apply these answers to the worksheet shown in figure 2.2 as follows
17
IV. Formulate linear programming model:
Identified type of cell in the spreadsheet:
o Data cells: cells showing the data
o Objective cells: contains the overall measure of performance for the decisions in
o Output cells: show quantities that are calculated from the changing cells
o Constraint : describes a restriction on the feasible values for the levels of the
18
IV. Formulate linear programming model:
The SUMPRODUCT function is used extensively in linear programming
spreadsheet models.
For example, consider the two ranges, C7:D7 and C12:D12, so that each range
has one row and two columns. In this case, SUMPRODUCT (C7:D7,
C12:D12) takes each of the individual terms in the range C7:D7, multiplies
them by the corresponding term in the range C12:D12, and then sums up these
individual products
19
IV. Formulate linear programming model:
To answer to the third question is that the overall measure of performance is
the total profit from the two products, this profit (per week) is entered in cell
G12
The value of the G12 is the sum of the data value of (C12: D12) and value of
(C4: D4)
20
IV. Formulate linear programming model:
Figure 2.3
Summary of the
formulate linear
programming
model on
spreadsheet for
the Wyndor’s
problems
21
V. Summary of the Formulation Procedure:
1. Gather the data for the problem
4. Identify the constraints on these decisions and introduce output cells as needed
to specify these constraints.
5. Choose the overall measure of performance to be entered into the objective cell.
6. Use a SUMPRODUCT function to enter the appropriate value into each output
cell (including the objective cell).
22
VI. Using Excel's solver:
Solver is a tool in Excel that can solve linear programming problems
o Choose Excel Options, then click on Add-Ins on the left side of the window
23
VI. Using Excel's solver:
Return to linear programming models on spreadsheets figure 2.3 (p.29).
Notice values of the decision variables (the production rates for the two
products) are in the changing cells, UnitsProduced (C12:D12), and the value
of the objective function (the total profit per week from the two products) is in
the objective cell TotalProfit (G12)
Solver will then change these to the optimal values after solving the problem
24
VII. Practicing Excel Solver
Choose the “Solver” from the
Data tab.
Select the cell you wish to
optimize in the “Set Objective”
window.
Choose “Max” or “Min”
depending on whether you
want to maximize or minimize
the objective cell.
Enter all the changing cells in
the “By Changing Variable
Cells” window.
25
VII. Practicing Excel Solver
Choose left column “Cell Reference”: E7 <= choose right column “Constraint”: G7
Choose left column “Cell Reference”: E8 <= choose right column “Constraint”: G8
Choose left column “Cell Reference”: E9 <= choose right column “Constraint”: G9
Click OK
26
VII. Practicing Excel Solver
Select a Solving Method:
Since this is a linear
programming problem,
choose Simplex LP
Click Solve.
27
VII. Practicing Excel Solver
Solver has solved the
problem
Click OK.
28
VII. Thực hành Excel Solver
Notice (C12:D12) and cell G12 has been changed to provide optimal
solutions for Wyndor’s problem.
29
VII. Practicing Excel Solver
Check to see if anything happen to the optimal solution, if there is a change
in the value of the different cells
o 2.S2
30