Linear Programming Overview
Linear Programming Overview
Using linear programming requires defining variables, finding constraints and finding the
objective function, or what needs to be maximized. In some cases, linear programming is
instead used for minimization, or the smallest possible objective function value. Linear
programming requires the creation of inequalities and then graphing those to solve
problems. While some linear programming can be done manually, quite often the variables
and calculations become too complex and require the use of computational software.
1
Introduction
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.
Linear programming (LP, also called linear optimization) is a method to achieve the best
outcome (such as maximum profit or lowest cost) in a mathematical model whose
requirements are represented by linear relationships. Linear programming is a special case of
mathematical programming (also known as mathematical optimization).
More formally, linear programming is a technique for the optimization of a linear objective
function, subject to linear equality and linear inequality constraints. Its feasible region is
a convex polytope, which is a set defined as the intersection of finitely many half spaces,
each of which is defined by a linear inequality. Its objective function is a real-valued affine
(linear) function defined on this polyhedron. A linear programming algorithm finds a point in
the polyhedron where this function has the smallest (or largest) value if such a point exists.
Linear programs are problems that can be expressed in canonical form as
Maxmize c^tx
Subject to ax<=b
And x>=0
where x represents the vector of variables (to be determined), c and b are vectors of
2
Objectives
To apply the theory of linear programming into real life situations so as to get a better
understanding of the structure and the mechanism of linear programming.
Characteristics
A. Objective function:
There must be clearly defined objective which can be stated in quantitative way. In business
problems the objective is generally profit maximization or cost minimization.
B. Constraints:
All constraints (limitations) regarding resources should be fully spelt out in mathematical
form.
C. Non-negativity:
The value of variables must be zero or positive and not negative. For example, in the case of
production, the manager can decide about any particular product number in positive or
minimum zero, not the negative.
D. Linearity:
The relationships between variables must be linear. Linear means proportional relationship
between two ‘or more variable, i.e., the degree of variables should be maximum one.
E. Finiteness:
The number of inputs and outputs need to be finite. In the case of infinite factors, to compute
feasible solution is not possible.
3
Assumptions
(iii) The relationship between objective function and constraints are linear.
(iv) The objective function is to be optimized i.e., profit maximization or cost minimization.
4
Steps of formulating LPP
The answer should depend on how much of some decision variables you choose. Your
options for how much will be limited by constraints stated in the problem.
You may have constraints like "you can't spend more than $1000" or "you mus't ship
at least 50 tons of product C". These are limits but don't necessarily reflect your
employer's top priorities; don't mistake these for suggestions that you minimize costs
or maximize production.
5
Case Study
Problem Statement:
The diet problem was one of the first optimization problems studied in the 1930s and 1940s.
The problem was motivated by the Army's desire to minimize the cost of feeding GIs in the
field while still providing a healthy diet. One of the early researchers to study the problem
was George Stigler, who made an educated guess of an optimal solution using a heuristic
method. The goal of the diet problem is to select a set of foods that will satisfy a set of daily
nutritional requirement at minimum cost. The problem is formulated as a linear program
where the objective is to minimize cost and the constraints are to satisfy the specified
nutritional requirements. Given a set of foods, along with the nutrient information for each
food and the cost per serving of each food, the objective of the diet problem is to select the
number of servings of each food to purchase (and consume) so as to minimize the cost of the
food while meeting the specified nutritional requirements. Typically, the nutritional
requirements are expressed as a minimum and a maximum allowable level for each
nutritional component. Other constraints such a minimum and/or maximum number of
servings may be included to improve the quality of the menu.
Suppose there are three foods available, corn, milk, and bread, and there are restrictions on
the number of calories (between 2000 and 2250) and the amount of Vitamin A (between 5000
and 50,000). The first table lists, for each food, the cost per serving, the amount of Vitamin A
per serving, and the number of calories per serving.
6
Mathematical Formulation:
7
8
Interpretation
A simple interpretation of this information is that the cost would be 3.15.The optimum quantity of
Corn would be 1.94 units, 10 units of Milk and 10 units Wheat Bread. This would satisfy all the
mentioned constraints as well as keep the cost minimum.
9
References
The nutrition information was obtained from US Department of Agriculture National Nutrient
Database for Standard Reference.
The demo and description of this case study were originally created by Optimization Center at
Northwestern University.
The history of the diet problem was obtained from George Dantzig's 1990 article in Interfaces:
G.B. Dantzig. The Diet Problem, Interfaces 20(4), 1990, 43-47.
R. Fourer, D. M. Gay, and B. W. Kernighan, 1993. AMPL: A Modeling Language for Mathematical
Programming. Scientific Press, San Francisco, California.
10