02 Chapter
02 Chapter
Tenth Edition
Chapter 2
Modeling with Linear
Programming
2.1. Two-variable LP model
• An Example Maximization Problem: Reddy Mikks produces both
interior and exterior paints from two raw materials, M1 and M2.
• The daily demand for interior paint cannot exceed that for exterior
paint by more than 1 ton.
Letting z represent the total daily profit , The objective (or goal)
of Reddy Mikks is expressed as:
2.1. Two-variable LP model
• Step 3: Defining Constraints.
• The daily demand for interior paint cannot exceed that for exterior
paint by more than 1 ton. So that:
x1 ≥ 0 and x2 ≥ 0
2.1. Two-variable LP model
• The complete Reddy Mikks model is:
2.1. Two-variable LP model
• Any values of x1 and x2 that satisfy all five constraints constitute a
feasible solution.
• For example, the solution x1 = 3 tons per day and x2 = 1 ton per
day is feasible because it does not violate any of the five.
• The goal of the problem is to find the optimum, the best feasible
solution that maximizes the total profit z.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Optimum Solution of the Reddy Mikks Model
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
2.2. Graphical Solution
• Remarks:
• The special feed is a mixture of corn and soybean meal with the
following compositions:
• The objective is to minimize the total daily cost (in dollars) of the
feed mix:
• The constraints represent the daily amount of the mix and the
dietary requirements.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
2.3. Computer Solution with Java and CPLEX
• We use Java programming language and Eclipse IDE for the
programming environment.
• Programming Setup:
• Please download and install latest Java SE Development Kit.
1. Investment.
2. Production planning and inventory control.
3. Workforce planning.
4. Urban development planning.
5. Oil refining and blending.
Example 2.4.1 Bank Loan Model
• Bank One is in the process of devising a loan policy that
involves a maximum of $12 million. The following table
provides the pertinent data about available loans.
• The bank limits the overall ratio of bad debts on all loans to at most
4%.
• Mathematical Model:
Example 2.4.1 Bank Loan Model
• For example, when 10% of personal loans are lost to bad debt, the
bank will receive interest on 90% of the loan—that is, it will receive
14% interest on .9x1 of the original loan x1.
Example 2.4.1 Bank Loan Model
• This will incur a storage cost at the rate of $8 per window per
month, assessed on end-of-month inventory.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Example 2.4.3 Multiple Period Production Smoothing
• A company is planning the manufacture of a product for March,
April, May, and June of next year.
• The demand quantities are 520, 720, 520, and 620 units,
respectively. The company has a steady workforce of 10
employees but can meet fluctuating production needs by hiring and
firing temporary workers.
• The extra costs of hiring and firing a temp in any month are $200
and $400, respectively.
• The company can produce more than needed in any month and
carry the surplus over to a succeeding month at a holding cost of
$50 per unit per month. Develop an optimal hiring/firing policy over
the 4-month planning horizon.
Example 2.4.3 Multiple Period Production Smoothing
• The permanent workers (10 in all) can be accounted for by
subtracting the units they produce from the respective monthly
demand. The remaining demand is then satisfied through the hiring
and firing of temps. Thus,
• Given the costs of hiring and firing a temp are $200 and $400,
respectively, we have:
• We can think of Si- as the number of temps hired and Si+ as the
number fired.
Example 2.4.3 Multiple Period Production Smoothing
• The study seeks the minimum number of buses that can handle the
transportation needs.
Copyright © 2017, 2011, 2007 Pearson Education, Inc. All Rights Reserved
Bus Scheduling
• A reasonable way to accomplish this goal is to allow a shift to start
every 4 hr. Thus, the variables:
Bus Scheduling
• The number of buses for the successive 4-hr periods can be
computed as follows:
Bus Scheduling
• The complete model:
Example 2.4.5 Bus Scheduling
• The solution from console out of the Java program:
Urban Renewal
• The city of Erstville is faced with a severe budget shortage. Seeking
a long-term solution, the city council votes to improve the tax base by
condemning an inner-city housing area and replacing it with a
modern development.
Mathematical Formulation:
Urban Renewal
subject to:
Example 2.4.6 Urban Renewal
• The solution from console out of the Java program:
Crude Oil Refining and Gasoline Blending
(3) a blender unit that blends the gasoline stock from the cracker unit
and the feedstock from the distillation tower.
Crude Oil Refining and Gasoline Blending
The company estimates the net profit per barrel of the three types of
gasoline to be $6.70, $7.20, and $8.10, respectively.
The demand limits for regular, premium, and super gasoline are
50,000, 30,000, and 40,000 bbl, respectively, per day.
We find:
Crude Oil Refining and Gasoline Blending
Crude Oil Refining and Gasoline Blending
Example 2.4.7 Crude Oil Refining and Gasoline Blending
• The solution from console out of the Java program: