1.2 Introduction and Elementary Examples
1.2 Introduction and Elementary Examples
1.1 Introduction
Maximize 𝑐𝑇 𝒙
Subject to 𝐴𝒙 ≤ 𝒃
And 𝒙 ≥ 𝟎,
where 𝒙 represents the vector of variables (to be determined), 𝒄 and 𝒃 are vectors and 𝐴 is a (known)
coefficients of matrix.
This problem class is broad enough to encompass many interesting and important
applications. The objective function may be profit, cost, production capacity or any other measure
of effectiveness, which is to be obtained in the best possible or optimal manner. The constraints
may be imposed by different sources such as market demand, production processes and equipment,
storage capacity, raw material availability, etc.
✓ In mathematics, linear programming (LP) is a technique for optimization of a linear
objective function, subject to linear equality and linear inequality constraints.
✓ Linear programming determines the way to achieve the best outcome (such as maximum
profit or lowest cost) in a given mathematical model and given some list of requirements
represented as linear equations.
• Linear programming was developed as a discipline in the 1940's, motivated initially by the
need to solve complex planning problems in wartime operations. Its development
accelerated rapidly in the postwar period as many industries found valuable uses for linear
programming.
• The problem of solving a system of linear inequalities dates back at least as far as Fourier,
who in 1827 published a method for solving them,[1] and after whom the method
of Fourier–Motzkin elimination is named.
• The first linear programming formulation of a problem that is equivalent to the general
linear programming problem was given by Leonid Kantorovich in 1939, who also
proposed a method for solving it.[2] He developed it during World War II as a way to plan
expenditures and returns so as to reduce costs to the army and increase losses incurred by
the enemy.
Leonid Kantorovich
• About the same time as Kantorovich, the Dutch-American economist T. C.
Koopmans formulated classical economic problems as linear programs. The Nobel prize
in econonmics was awarded in 1975 to the mathematician Leonid Kantorovich (USSR)
and the economist Tjalling Koopmans (USA) for their contributions to the theory of
optimal allocation of resources, in which linear programming played a key role.
• In 1941, Frank Lauren Hitchcock also formulated transportation problems as linear
programs and gave a solution very similar to the later Simplex method; [2] Hitchcock had
died in 1957 and the Nobel prize is not awarded posthumously.
• During 1946–1947, George B. Dantzig independently developed general linear
programming formulation to use for planning problems in US Air Force. In 1947, Dantzig
also invented the simplex method that for the first time efficiently tackled the linear
programming problem in most cases. When Dantzig arranged meeting with John von
Neumann to discuss his Simplex method, Neumann immediately conjectured the theory
of duality by realizing that the problem he had been working in game theory was
equivalent. Dantzig provided formal proof in an unpublished report "A Theorem on Linear
Inequalities" on January 5, 1948.[3] Postwar, many industries found its use in their daily
planning.
• The founders of the subject are generally regarded as George B. Dantzig, who devised the
simplex method in 1947, and John von Neumann, who established the theory of duality
that same year.
• Dantzig's original example was to find the best assignment of 70 people to 70 jobs. The
computing power required to test all the permutations to select the best assignment is vast;
the number of possible configurations exceeds the number of particles in the observable
universe. However, it takes only a moment to find the optimum solution by posing the
problem as a linear program and applying the simplex algorithm. The theory behind linear
programming drastically reduces the number of possible solutions that must be checked.
• The linear programming problem was first shown to be solvable in polynomial time
by Leonid Khachiyan in 1979, but a larger theoretical and practical breakthrough in the
field came in 1984 when Narendra Karmarkar introduced a new interior-point method for
solving linear-programming problems.
Linear programming can be used for optimization problems if the following conditions are
satisfied:
2. There must be constraints on the amount of extent of attainment of the objective and
these constraints must be capable of being expressed as linear equalities or inequalities
in terms of variables.
3. There must be alternative courses of action. For example, a given product may be
processed by two different machines and problem may be as to how much of the
product to allocate to each machine.
The following four assumptions are made in the linear programming problems.
• Linearity: the amount of resources required for a given activity level is directly
proportional to the level of that activity. For example, if the number of hours
required on a particular machine (for a given activity level) is 5 hours per unit of
that activity, then the total number of hours required on that machine to produce 10
units of that activity is 50 hours.
• Divisibility: this means that fractional values of the decision variables are
permitted.
• Non-negativity: this means that the decision variables are permitted to have only
the values which are greater than or equal to zero.
• Additivity: this means that the total output for a given combination of activity
levels is the algebraic sum of the output of each individual process.
1.5 Modeling with Linear Programming
The proper definition of the decision variables is an essential first step in the development
of the model. Once done, the task of constructing the objective function and the constraints
become more straightforward.
Formulating LP models:
✓ Step 1
➢ Study the given situation.
➢ Find the key decision to be made.
➢ Identify the decision variables of the problem.
✓ Step 2
➢ Formulate the objective function to be optimized.
✓ Step 3
➢ Formulate the constraints of the problem.
✓ Step 4
➢ Add non-negativity restrictions or constraints.
✓ Production Management
- Product Mix
- Production Planning
- Assembly Line Balancing
- Blending Problems
- Trim Loss Prevention
✓ Financial Management
- Portfolio Selection
- Profit Planning
✓ Marketing Management
- Media Selection
- Traveling Salesman Problem
- Physical Distribution
✓ Personnel Management
- Staffing Problem
- Determination of Equitable Salaries
- Job Evaluation and Selection
Elementary Examples:
A firm produces three products. These products are processed on three different machines. The
time required manufacturing one unit of each of the three products and the daily capacities of the
three machines are given in the table below:
M1 2 3 2 440
M2 4 - 3 470
M3 2 5 - 430
It is required to determine the daily number of units to be manufactured for each product. The
profit per unit for product 1, 2, and 3 is Rs. 4, Rs. 3 and Rs. 6 respectively. It is assumed that all
the amounts produced are consumed in the market.
Formulation:
Let the number of units of products: 1, 2, and 3 manufactured daily be x1 , x2 and x3 respectively.
Maximize z = 4 x1 + 3x2 + 6 x3
Subject to
2 x1 + 3 x2 + 2 x3 440
4 x1 + 0 x2 + 3 x3 470
2 x1 + 5 x2 + 0 x3 430
x1 0, x2 0, x3 0
Example 2 (Product Mix Problem)
A chemical company produces two products, X and Y. Each unit of product X requires 3 hours on
operation I and 4 hours of operation II, while each unit of product Y requires 4 hours on operation
I and 5 hours on operation II. Total available time for operations I and II is 20 hours and 26 hours
respectively. The production of each units of product Y also results in two units of a by-product Z
at no extra cost.
Product X sells at profit of Rs. 10/unit, while Y sells at profit of Rs. 20/unit. By-product Z brings
a unit profit of Rs. 6 if sold; in case it cannot be sold, the destruction cost is Rs. 4/unit. Forecasts
indicate that not more than 5 units of Z can be sold.
Determine the quantities of X and Y to be produced, keeping Z in mind, so that profit earned is
maximum.
Formulation
Maximize z = 10 x1 + 20 x2 + 6 x3 − 4 x4
Subject to
3x1 + 4 x2 20 (Time available on operation I)
4 x1 + 5 x2 26 (Time available on operation II)
x3 5 (No. of units of Z sold)
− 2 x2 + x3 + x4 = 0 (No. of units of Z produced)
x1 0, x2 0, x3 0, x4 0
Example 3 (Advertising Media Selection Problem)
An advertising company wishes to plan its advertising strategy in three different media - television,
radio and magazines. The purpose of advertising is to reach a large number of potential customers
as possible. Following data has been obtained from market survey:
No. of potential customers 200 000 600 000 150 000 100 000
reached per unit
The company wants to spend not more than Rs. 450 000 on advertising. Following are the further
requirements that must be met:
(i) At least 1 million exposures take place among female customers,
(ii) Advertising on magazines be limited to Rs. 150 000,
(iii)At least 3 advertising units be bought on magazine 1 and 2 units on magazine II, and
(iv) The number of advertising units on television and radio should each be between 5 and 10.
Formulation
Let x1 , x2 , x3 , x4 represent the number of these advertising units in television, radio, magazine I and
magazine II respectively.
The objective is to maximize the total number of potential customers.
The strategic bomber command receives instructions to interrupt the enemy tank production. The
enemy has 4 key plants located in separate cities, and destruction of any one plant will effectively
halt the production of tanks. There is an accurate shortage fuel, which limits the supply to 45 000
liters for this particular mission. Any bomber sent to any particular city must have at least enough
fuel for the round trip plus 100 liters.
The number of bombers available to the commander and their descriptions are as follows:
Information about the location of the plants and their probability of being attacked by a medium
bomber and a heavy bomber is given below:
How many each type of bombers should be dispatched, and how should they be allocated among
the four targets in order to maximize the probability of success?
Formulation
Minimize Q =
(1 − 0.1)𝑥𝐴1 (1 − 0.2)𝑥𝐴2 (1 − 0.15)𝑥𝐴3 (1 − 0.25)𝑥𝐴4 (1 − 0.08)𝑥𝐵1 (1 − 0.16)𝑥𝐵2
(1 − 0.12)𝑥𝐵3 (1 − 0.20)𝑥𝐵4
A cargo plane has three compartments for storing cargo: front, centre and rear. These
compartments have the following limits on both weight and space:
Furthermore, the weight of the cargo in the respective compartments must be the same
proportion of that compartment's weight capacity to maintain the balance of the plane.
The following four cargoes are available for shipment on the next flight:
Any proportion of these cargoes can be accepted. The objective is to determine how much (if
any) of each cargo C1, C2, C3 and C4 should be accepted and how to distribute each among the
compartments so that the total profit for the flight is maximized.
Solution
Variables:
We need to decide how much of each of the four cargoes to put in each of the three
compartments. Hence let:
xij be the number of tonnes of cargo i (i=1,2,3,4 for C1, C2, C3 and C4 respectively) that is put
into compartment j (j=1 for Front, j=2 for Centre and j=3 for Rear) where xij >=0 i=1,2,3,4;
j=1,2,3
Note here that we are explicitly told we can split the cargoes into any proportions (fractions) that
we like.
Constraints:
• cannot pack more of each of the four cargoes than we have available
• the weight of the cargo in the respective compartments must be the same proportion of
that compartment's weight capacity to maintain the balance of the plane
[x11 + x21 + x31 + x41]/10 = [x12 + x22 + x32 + x42]/16 = [x13 + x23 + x33 + x43]/8
Objective:
There are three stages (A, B, C) in the manual assembly of each product and the man-
hours needed for each stage per unit of product are shown below:
Product
1 2 3 4
Stage A 2 2 1 1
B 2 4 1 2
C 3 6 1 5
The nominal time available in the next week for assembly at each stage (A, B, C) is
160, 200 and 80 man-hours respectively.
It is possible to vary the man-hours spent on assembly at each stage such that workers
previously employed on stage B assembly could spend up to 20% of their time on
stage A assembly and workers previously employed on stage C assembly could spend
up to 30% of their time on stage A assembly.
Production constraints also require that the ratio (product 1 units assembled)/(product
4 units assembled) must lie between 0.9 and 1.15.
Formulate the problem of deciding how much to produce next week as a linear
program.
Solution
Variables
Let
• maximum demand
x1 <= 50
x2 <= 60
x3 <= 85
x4 <= 70
• ratio
• work-time
Objective
Note we neglect the fact that the xi variables should be integer because we are told to
formulate the problem as an LP.