Week 9 LinearOptimization
Week 9 LinearOptimization
Linear Optimization
Business Analytics
Optimization
• Optimization is the process of selecting values of decision
variables that minimize or maximize some quantity of
interest.
• Optimization models have wide applicability in operations
and supply chains, finance, marketing, and other
disciplines.
• Also known as mathematical programming
Linear Optimization Models
• A linear optimization model (often called a linear
program, or LP) has two basic properties.
• The fabrication department has 12 skilled workers, each of whom works 7 hours
per day. The finishing department has 3 workers, who also work a 7-hour shift.
• Each pair of Jordanelle skis requires 3.5 labor-hours in the fabricating
department and 1 labor-hour in finishing.
• The Deercrest model requires 4 labor-hours in fabricating and 1.5 labor-hours in
finishing.
• The company operates 5 days per week.
• SSC makes a net profit of $50 on the Jordanelle model and $65 on the
Deercrest model.
• Because of high demand, SSC can sell all it can produce each season.
• Both the fabrication and finishing departments have limited numbers of workers, who
work only 7 hours each day; this limits the amount of production time available in each
department:
– Fabrication: Total labor hours used in fabrication cannot exceed the amount of
labor hours available.
– Finishing: Total labor hours used in finishing cannot exceed the amount of labor
hours available.
• The problem also notes that the company anticipates selling at least twice as many
Deercrest models as Jordanelle models:
– Number of pairs of Deercrest skis must be at least twice the number of parts of
Jordanelle skis.
–
Translating Constraints Mathematically
• Constraints are expressed as algebraic inequalities or equations, with
all variables on the left side and constant terms on the right.
• Look for key words in word statements of constraints:
– Required fabrication labor hours per ski pair: 3.5 hours for
Jordanelle, 4 hours for Deercrest
– Fabrication constraint:
• Finishing constraint
– Available finishing labor hours:
– Required finishing labor hours per ski pair: 1 hour for Jordanelle;
1.5 hours for Deercrest
– Finishing constraint:
Example 13.3: SSC - Modeling the
Constraints (2 of 2)
• Market mixture constraint
– The number of pairs of Deercrest skis must be at least
twice the number of Jordanelle skis.
–
– or
• Nonnegativity constraints:
–
–
SSC Optimization Model
Maximize total profit = 50 Jordanelle + 65 Deercrest
• Objective:
– Maximize gross profit margin =
• Constraints:
–
–
• Clips have the highest marginal profit per unit of resource consumed.
• Solver message:
Example 13.14: An Infeasible Model
• Suppose, by mistake, the modeler in the Sklenka Ski problem used
Blending Models
• Blending problems involve mixing several raw materials
that have different characteristics to make a product that
meets certain specifications.
– Dietary planning, gasoline and oil refining, coal and
fertilizer production, and the production of many other
types of bulk commodities involve blending.
• We typically see proportional constraints in blending
models.
Example 13.15: BG Seed Company (1 of 4)
• BG Seed Company is developing a new birdseed mix.
– Nutritional requirements specify that the mixture contain at least
13% protein, at least 15% fat, and no more than 14% fiber.
– BG’s objective is to determine the minimum cost mixture that
meets nutritional requirements.
• Add constraint
– Protein constraint simplifies to
–
Ingredient Protein % Fat % Fiber % Cost/lb
Sunflower seeds 16.9 26 29 $0.22
White millet 12 4.1 8.3 $0.19
Kibble corn 8.5 3.8 2.7 $0.10
Formulate other nutritional Oats 15.4 6.3 2.4 $0.10
constraints in a similar way. Cracked corn 8.5 3.8 2.7 $0.07
Wheat 12 1.7 2.3 $0.05
Safflower 18 17.9 28.8 $0.26
Canary grass seed 11.9 4 10.9 $0.11
Example 13.15: BG Seed Company (4 of 4)
• Complete model
Minimize:
Mixture:
Protein:
Fat:
Fiber:
Nonnegativity:
Spreadsheet Implementation of BG
Seed Company
Solver Model for BG Seed Company
Dealing with Infeasibility
• Solver solution shows the model is infeasible!
• Solver Feasibility Report
1st Scenario:
Fat requirement is lowered from
15% to 14.5%.
2nd Scenario:
Fiber limitation is raised from
14% to 14.5%.
Optimal Cost per pound:
$0.148 if fat requirement
lowered
$0.152 if fiber limitation raised
Portfolio Investment Models
• Many types of financial investment problems are modeled
and solved using linear optimization.
• Such portfolio investment models problems have the basic
characteristics of blending models.
Example 13.16: Innis Investments (1 of 3)
• Innis Investments manages 6 mutual funds. A client wants to invest a $500,000
inheritance. The objective is to minimize risk.
• Constraints:
– Invest no more than $200,000 in any one fund.
– Invest at least $50,000 each in the multinational and balanced funds.
– Invest at least 40% combined in the income equity and balanced funds.
– Achieve an average return of at least 5%.
– Maximize
–
–
Bond Portfolio Expected Return Risk Measure
1. Ohio National Bond Portfolio 6.11% 4.62
2. PIMCO Global Bond Unhedged Portfolio 7.61% 7.22
3. Federated High Income Bond Portfolio 5.29% 9.75
4. Morgan Stanley U IF Core Plus Fixed Income Portfolio 2.79% 3.95
5. PIMCO Real Return Portfolio 7.37% 6.04
6. PIMCO Total Return Portfolio 5.65% 5.17
Example 13.17: Little Investment
Advisors (3 of 4)
• Solver solution without scaling, resulting in an incorrect
solution!
Example 13.17: Little Investment
Advisors (4 of 4)
• Solver solution after scaling the variables
Transportation Models
• The transportation problem involves determining how
much to ship from a set of sources of supply (factories,
warehouses, etc.) to a set of demand locations
(warehouses, customers, etc.) at minimum cost.
Example 13.18: General Appliance
Corporation (1 of 2)
• GAC produces refrigerants at 2 plants and ships to 5 distribution centers.
Plant Distribution Distribution Distribution Distribution Distribution
center: center: center: Chicago center: Phoenix center:
Cleveland Baltimore Capacity
Marietta $12.60 $14.35 $11.52 $17.58 1,200
blank
• The objective is to minimize the total cost of shipping between plants and distribution
centers.
– minimize
Example 13.18: General Appliance
Corporation (2 of 2)
• Constraints
– The amount shipped from each plant cannot exceed its capacity.
– Demand at each distribution center is met.
– Nonnegativity
GAC Spreadsheet Implementation
and Solver Model
Multiperiod Production Planning
Models
• The basic decisions are how much to produce in each time
period to meet anticipated demand over each period.
• Although it might seem obvious to simply produce to the
anticipated level of sales, it may be advantageous to
produce more than needed in earlier time periods when
production costs may be lower and store the excess
production as inventory for use in later time periods,
thereby letting lower production costs offset the costs of
holding the inventory.
Example 13.19: K&L Designs (1 of 5)
• K&L Designs makes hand-painted jewelry boxes.
– Forecasted sales are 150 in autumn, 400 in winter, and 50
in spring.
– Unpainted boxes cost $20 and each box takes 2 hours to
complete.
– The cost of capital is 6% per quarter.
– Holding cost per item = 0.06(20) = $1.20/quarter
– Labor rates are $5.50, $7.00, and $6.25 per hour during
autumn, winter, and spring, respectively.
• Minimize the combined cost of production and inventory holding
costs.
Example 13.19: K&L Designs (2 of 5)
• Decision variables
minimize
subject to
Spreadsheet Implementation for K&L
Designs
Solver Model for K&L Designs
Example 13.20: An Alternative
Optimization Model for K&L Designs
• To ensure that demand is satisfied, we can set the cumulative
production in each quarter to be at least as great as the
cumulative demand.
– This eliminates inventory variables.
minimize
Alternative Spreadsheet Model
Alternative Solver Model
Multiperiod Financial Planning
Models
• Financial planning often occurs over an extended time
horizon.
• Financial planning models have similar characteristics to
multiperiod production planning and can be formulated as
multiperiod optimization models.
Example 13.21: D.A. Branch & Sons (1 of 3)
• The company’s financial manager needs to ensure that funds are
available to pay expenses yet needs to maximize investment income.
• Three short-term investments are being considered:
– 1-month C D paying 0.25%
– 3-month C D paying 1.00% at maturity
– 6-month C D paying 2.30% at maturity
• The net expenditures for the next 6 months are forecast as $50,000,
($12,000), $23,000, ($20,000), $41,000, and ($13,000)
• A cash balance of $10,000 must be maintained. Currently the cash
balance is $200,000.
Example 13.21: D.A. Branch &Sons (2
of 3)
• Model development