Optimization-Modeling PDF
Optimization-Modeling PDF
Math
Programming
Introduction to LP Modeling
Producing Frames at the Monet Company
Math Programming - 2
US Army Logistics Management College
Background Information
Producing Frames at the Monet Company
Math Programming - 3
US Army Logistics Management College
LP Spreadsheet Modeling
• There is no exact one way to develop an LP spreadsheet model.
• The common elements in all LP spreadsheet models are the
following:
Inputs: all numeric data needed to form the objective and the constraints.
Our convention is to enclose all inputs in a blue border with shading in the
upper left corner.
Changing cells: a set of designed cells that play the roles of the decision
variables. We will enclose them in a red border.
Target (objective) cell: a single cell that contains the value of the objective.
Our convention is to enclose the target cell in a double-line border.
Math Programming - 5
US Army Logistics Management College
LP Spreadsheet Modeling
Math Programming - 6
US Army Logistics Management College
Model Formulation
Producing Frames at the Monet Company
Math Programming - 7
US Army Logistics Management College
Model Formulation
Enter Trial Values
Math Programming - 8
US Army Logistics Management College
Math Programming - 9
US Army Logistics Management College
Math Programming - 12
US Army Logistics Management College
Sensitivity Analysis
Producing Frames at the Monet Company
Sensitivity Analysis
Producing Frames at the Monet Company
Math Programming - 14
US Army Logistics Management College
Math Programming - 15
US Army Logistics Management College
Math Programming - 16
US Army Logistics Management College
Math Programming - 18
US Army Logistics Management College
Math Programming - 19
US Army Logistics Management College
• Check how
sensitive the
optimal profit
is to
simultaneous
changes in
the hourly
labor cost
and the total
labor hours
available
Math Programming - 20
US Army Logistics Management College
Solution
Producing Frames at the Monet Company
Math Programming - 21
US Army Logistics Management College
Math Programming - 22
US Army Logistics Management College
Background Information
Worker and Production Planning at SureStep
Background Information
Worker and Production Planning at SureStep
Math Programming - 24
US Army Logistics Management College
Model Formulation
Worker and Production Planning at SureStep
Math Programming - 25
US Army Logistics Management College
Model Formulation
Worker and Production Planning at SureStep
Model Formulation
Worker and Production Planning at SureStep
Math Programming - 27
US Army Logistics Management College
Model Formulation
Worker and Production Planning at SureStep
– Monthly inventory:
» Inventory after production in month 1 (cell B34 =InitInv+B30)
» For other months, inventory after production is the previous
month’s ending inventory plus this month’s production (cell
C34 =B37+C30 and copy it to the range D34:E34)
» Ending inventory is inventory after production less demand
(cell B37 =B34-B36 and copy it to the range C37:E37)
– Monthly costs: Calculate the various costs shown in rows 40
through 45
(cell B40 =UnitHireCost*B18, cell B41 =UnitFireCost*B19,
cell B42 =RTWageRate*B20, cell B43 =OTWageRate*B23,
cell B44 =UnitMatCost*B30, cell B45 =UnitHoldCost*B37
and copy B40:B45 to the range C40:E45)
Math Programming - 28
US Army Logistics Management College
Math Programming - 29
US Army Logistics Management College
Optimal Solution
Worker and Production Planning at SureStep
Math Programming - 30
US Army Logistics Management College
Math Programming - 33
US Army Logistics Management College
Math Programming - 34
US Army Logistics Management College
Math Programming - 35
US Army Logistics Management College
Math Programming - 36
US Army Logistics Management College
Math Programming - 38
US Army Logistics Management College
Comparing Results
Backlog Models versus No Backlog
Math Programming - 39
US Army Logistics Management College
Sensitivity Analysis
Worker and Production Planning at SureStep
Math Programming - 40
US Army Logistics Management College
Sensitivity Analysis
Worker and Production Planning at SureStep
Math Programming - 41
US Army Logistics Management College
Modeling Issues
Worker and Production Planning at SureStep
Math Programming - 44
US Army Logistics Management College
Math Programming - 45
US Army Logistics Management College
Background Information
Producing and Shipping Tomato Products at RedBrand
T:0
S:200 4
1
6 D:400
S:300 2
7 D:180
3 5 T:0
S:100
• The RedBrand Company produces tomato products at three plants
• These products can be shipped directly to their two customers or
they can first be shipped to the company’s two warehouses and
then to the customers
Math Programming - 46
US Army Logistics Management College
Background Information
Producing and Shipping Tomato Products at RedBrand
Math Programming - 48
US Army Logistics Management College
Math Programming - 49
US Army Logistics Management College
Optimal Solution
Producing and Shipping Tomato Products at RedBrand
Math Programming - 50
US Army Logistics Management College
Sensitivity Analysis
Producing and Shipping Tomato Products at RedBrand
Math Programming - 52
US Army Logistics Management College
Math Programming - 53
US Army Logistics Management College
Math Programming - 54
US Army Logistics Management College
Math
Programming
Math Programming - 57
US Army Logistics Management College
Background Information
Facility Location and Logistics Planning at Huntco
Math Programming - 58
US Army Logistics Management College
Modeling Approach
Facility Location and Logistics Planning at Huntco
Math Programming - 59
US Army Logistics Management College
Model Formulation
Facility Location and Logistics Planning at Huntco
Math Programming - 60
US Army Logistics Management College
Model Formulation
Facility Location and Logistics Planning at Huntco
• Amount shipped out of each plant: Enter the formula
=SUM(B30:D30) in cell E30 and copy
• Upper limit on amount shipped out of each plant: For
each plant we need a constraint of the form
Total shipped out of plant Plant capacity * Fixed-cost
variable for plant
Math Programming - 61
US Army Logistics Management College
Model Formulation
Facility Location and Logistics Planning at Huntco
Model Formulation
Facility Location and Logistics Planning at Huntco
Model Formulation
Facility Location and Logistics Planning at Huntco
Math Programming - 64
US Army Logistics Management College
Math Programming - 65
US Army Logistics Management College
Math Programming - 67
US Army Logistics Management College
Sensitivity Analysis
Facility Location and Logistics Planning at Huntco
Math Programming - 68
US Army Logistics Management College
Math Programming - 69
US Army Logistics Management College
Background Information
Manufacturing at Dorian Auto
Math Programming - 70
US Army Logistics Management College
Model Formulation
Manufacturing at Dorian Auto
• In addition to tracking the number of each car type produced,
labor hours, steel used, and profit, we must ensure that Dorian
produces either 0 or at least 1000 cars of each type – this is an
either-or constraint
• To develop the model, follow these steps:
• Inputs: Enter the input data into the shaded ranges
• Numbers of cars produced: Enter trial values for the number
of cars of each type produced in the UnitsProduced range
• Binary variables for minimum production: Enter any trial 0-1
values in the ProduceMin range (1=Dorian must produce at
least the minimum number of the corresponding car type, 0=do
not produce any of that type car)
Math Programming - 71
US Army Logistics Management College
Model Formulation
Manufacturing at Dorian Auto
Math Programming - 72
US Army Logistics Management College
Model Formulation
Manufacturing at Dorian Auto
• Summarizing the lower & upper limits, if the binary variable is 1,
the production limits become
Min production required Production Maxproduction
possible
• If the binary variable is 0, the limits become 0 Production 0
• Exactly one of these cases must hold for each car type, so they
successfully implement the either-or constraints
• Steel / labor used: enter the formula
=SUMPRODUCT(B5:D5,UnitsProduced) in cell B22 and copy
to calculate the tons of steel and number of labor hours used
• Profit: Calculate the profit in the Profit cell with the formula
=SUMPRODUCT(UnitProfits,UnitsProduced).
Math Programming - 73
US Army Logistics Management College
Math Programming - 74
US Army Logistics Management College
Optimal Solution
Manufacturing at Dorian Auto
Math Programming - 75
US Army Logistics Management College
Sensitivity Analysis
Manufacturing at Dorian Auto
• What type of incentive might cause the company to produce
more than one car type?
– One possible answer is that the minimum production levels for
each type, all currently 1000, are perhaps too high
– Use SolverTable to see the effect of decreasing each of these
minimum production levels by the same factor (the model must be
modified slightly: go to the worksheet labeled Sensitivity)
– Input the original minimum production levels in range F5:H5, and
enter the formula =DecrFactor*H5 in cell B7 and copy it across
row 7
– Invoke SolverTable with the DecrFactor cell as the single input
cell, varied from 0.2 to 1 in increments of 0.2, and keep track of
profit and all changing cell values
Math Programming - 76
US Army Logistics Management College
Sensitivity Analysis
Manufacturing at Dorian Auto
• SolverTable results indicate that when the minimum production
levels are reduced to 200 or 400, Dorian produces both compact
and midsize cars above the minimum level
• When the minimum production level is 600, Dorian still produces
both types, but it does not produce any more compacts than
necessary
• Finally, when the minimum production level is 800 or 1000, Dorian
produces only midsize cars – as many as steel availability allows
• Does this sound correct? We checked it, and it is correct, but here is
a test of your economic reasoning
• The results seems to imply that compacts extract less profit from the
resources than midsize cars. But if this is the case, why doesn’t
Dorian produce the minimum number of compacts when the
minimum production is 200 or 400? (for example, when it is 400,
why doesn’t Dorian produce 400 compacts and 1800 midsize cars?)
Math Programming - 77
US Army Logistics Management College
Goal Programming
Determining an Advertising Schedule
at Leon Burnit
Math Programming - 78
US Army Logistics Management College
Background Information
Determining an Advertising Schedule at Leon Burnit
• The Leon Burnit Ad Agency is trying to determine a TV advertising
schedule for a client
• The client has three goals (listed in descending order of importance)
– Goal 1: at least 65 million high-income men (HIM)
– Goal 2: at least 72 million high-income women (HIW)
– Goal 3: at least 70 million low-income people (LP)
• Burnit can purchase ads to air on different program types (live sports
shows, game shows, news shows, sitcoms, dramas, and soap
operas), each with different ad costs & audience makeup
• At most $700,000 total can be spent on ads
• The client requires that at least two ads be placed on sports shows,
news shows, and dramas, and that no more than ten ads be placed
on any single type of show
• Burnit wants to find the advertising plan that best meets its client’s
goals
Math Programming - 79
US Army Logistics Management College
Solution Approach
Determining an Advertising Schedule at Leon Burnit
Math Programming - 80
US Army Logistics Management College
Model Formulation
Determining an Advertising Schedule at Leon Burnit
• Inputs: Enter all inputs in the shaded ranges
• Number of ads: Enter any trial values for the numbers of ads in the
Ads range
• Total cost: Enter the formula =SUMPRODUCT(UnitCosts,Ads) in the
TotCost cell
• Exposures obtained: enter the formula =SUMPRODUCT(B7:G7,Ads)
in cell B26 and copy to
calculate exposures
for the three groups
• The completed Solver
dialog box is shown
here (notice there is
no target cell – we are
checking for feasibility
only)
Math Programming - 81
US Army Logistics Management College
Solution Results
Determining an Advertising Schedule at Leon Burnit
Math Programming - 82
US Army Logistics Management College
Goal Programming
Determining an Advertising Schedule at Leon Burnit
• Since a $700,000 budget is not sufficient to meet all of the
client’s goals, use goal programming to see how close Burnit
can come to their goals
• The upper and lower limits on the ads of each type and the
budget constraints are considered hard constraints in this
model (they cannot be violated under any circumstances)
• The goals on exposures, on the other hand, are considered soft
constraints (the client wants to satisfy these goals, but it is
willing to come up somewhat short – in fact, it must because of
the limited budget)
• In goal programming models the soft constraints are prioritized
– We first try to satisfy the goals with the highest priority
– If there is still any room to maneuver, we then try to satisfy the
goals with the next highest priority
– If there is still room to maneuver, we move on to the goals with the
third highest priority, and so on
Math Programming - 83
US Army Logistics Management College
Math Programming - 84
US Army Logistics Management College
Math Programming - 86
US Army Logistics Management College
Math Programming - 87
US Army Logistics Management College
Math Programming - 88
US Army Logistics Management College
Math Programming - 89
US Army Logistics Management College
Sensitivity Analysis
Determining an Advertising Schedule at Leon Burnit
Math Programming - 90
US Army Logistics Management College
Math Programming - 91
US Army Logistics Management College
Math Programming - 92
US Army Logistics Management College
Background Information
Max Profit and Min Pollution at Chemcon
Math Programming - 93
US Army Logistics Management College
Math Programming - 94
US Army Logistics Management College
Math Programming - 95
US Army Logistics Management College
Math Programming - 96
US Army Logistics Management College
Math Programming - 97
US Army Logistics Management College
Math Programming - 99