Linear Programming
Linear Programming
Figure 1.1
Examples include:
ERP – Enterprise Resource Planning
OLAP – Online Analytical Processing
1-9
Whats Is Linear Programming?
• Many major decisions faced by a manager of a business focus on the best way to
achieve the objectives of the firm, subject to the restrictions placed on the
manager by the operating environment.
• These restrictions can take the form of limited resources, such as time, labor,
energy, material, or money; or they can be in the form of restrictive guidelines,
such as a recipe for make engineering and product specifications.
• One of the most frequent objectives of business firms is to gain the most profit
possible or, in other words, to maximize profit.
• The objective of individual organizational units within a firm (such as a production
or packaging department) is often to minimize cost.
• Objectives of a business frequently are to maximize profit or minimize cost.
• Linear programming is a model that consists of linear relationships representing
a firm's decisions, given an objective and resource constraints.
What Is Linear Programming?
There are three steps in applying the linear programming technique.
• the problem must be identified as being solvable by linear programming.
• the unstructured problem must be formulated as a mathematical model.
• the model must be solved by using established mathematical techniques.
Model Formulation
• A linear programming model consists of certain common components
and characteristics.
• The model components include
• an objective function,
• and model constraints
• decision variables
• parameters.
• Decision variables are mathematical symbols that represent levels of
activity.
• The objective function is a linear relationship that reflects the
objective of an operation. (minimizing or maximizing value)
Model Formulation
• The model constraints are also linear relationships of the decision
variables; they represent the restrictions placed on the firm by the
operating environment. The restrictions can be in the form of limited
resources or restrictive guidelines. For example, only 40 hours of
labor may be available to produce radios during production. The
actual numeric values in the objective function and the constraints,
such as the 40 hours of available labor, are parameters.
• A constraint is a linear relationship that represents a restriction on
decision making.
• Parameters are numerical values that are included in the objective
functions and constraints.
A Maximization Model Example
Beaver Creek Pottery Company is a small crafts operation run by a Native American tribal council. The company
employs skilled artisans to produce clay bowls and mugs with authentic Native American designs and colors.
The two primary resources used by the company are special pottery clay and skilled labor. Given these limited
resources, the company desires to know how many bowls and mugs to produce each day in order to maximize
profit. This is generally referred to as a product mix problem type.
A Maximization Model Example
The two products have the following resource requirements for
production and profit per item produced (i.e., the model parameters):
There are 40 hours of labor and 120 pounds of clay available each day for production. We will formulate
this problem as a linear programming model by defining each component of the model separately and
then combining the components into a single model.
A Maximization Model Example
However, the amount of labor represented by 1x1 + 2x2 is limited to 40 hours per day; thus, the complete labor constraint is:
The "less than or equal to“ inequality is employed instead of an equality (=) because the 40 hours of labor is a maximum limitation that can
be used, not an amount that must be used. This constraint allows the company some flexibility; the company is not restricted to using exactly
40 hours but can use whatever amount is necessary to maximize profit, up to and including 40 hours. This means that it is possible to have idle,
or excess, capacity (i.e., some of the 40 hours may not be used).
The constraint for clay is formulated in the same way as the labor constraint. Because each bowl requires 4 pounds of clay, the amount of clay
used daily for the production of bowls is 4x1 pounds; and because each mug requires 3 pounds of clay, the amount of clay used daily for mugs
is 3x2. Given that the amount of clay available for production each day is 120 pounds, the material constraint can be formulated as
A Maximization Model Example
A final restriction is that the number of bowls and mugs produced must be either zero or a positive value
because it is impossible to produce negative items. These restrictions are referred to as nonnegativity
constraints and are expressed mathematically as
Nonnegativity constraints restrict the decision variables to zero or positive values.
The complete linear programming model for this problem can now be summarized as follows:
A Maximization Model Example
The solution of this model will result in numeric values for x1 and x2 that will maximize total profit,
Z. As one possible solution, consider x1 = 5 bowls and x2 = 10 mugs. First, we will substitute this
hypothetical solution into each of the constraints in order to make sure that the solution does not
require more resources than the constraints show are available:
Because neither of the constraints is violated by this hypothetical solution, we say the solution is
feasible (i.e., it is possible). Substituting these solution values in the objective function gives Z =
40(5) + 50(10) = $700. However, for the time being, we do not have any way of knowing whether
$700 is the maximum profit.
Although this is certainly a better solution in terms of profit, it is infeasible (i.e., not
possible) because it violates the resource constraint for labor:
The solution to this problem must maximize profit without violating the constraints.
The solution that achieves this objective is x1 = 24 bowls and x2 = 8 mugs, with a
corresponding profit of $1,360. The determination of this solution is shown using
the graphical solution approach in the following section.
Graphical Solutions of Linear Programming Models
• Following the formulation of a mathematical model, the next stage in
the application of linear programming to a decision-making problem
is to find the solution of the model. A common solution approach is
to solve algebraically the set of mathematical relationships that form
the model either manually or using a computer program, thus
determining the values for the decision variables. However, because
the relationships are linear, some models and solutions can be
illustrated graphically.
• Graphical solutions are limited to linear programming problems with
only two decision variables.
• The graphical method is realistically limited to models with only two
decision variables, which can be represented on a graph of two
dimensions. Models with three decision variables can be graphed in
three dimensions, but the process is quite cumbersome, and models
of four or more decision variables cannot be graphed at all.
Graphical Solutions of Linear Programming Models
The product mix model will be used to demonstrate the graphical interpretation of a linear programming
problem. Recall that the problem describes Beaver Creek Pottery Company's attempt to decide how many
bowls and mugs to produce daily, given limited amounts of labor and clay. The complete linear programming
model was formulated as
Graphical Solutions of Linear Programming Models
The first step in drawing the graph of the model is to plot the constraints
on the graph. This is done by treating both constraints as equations (or
straight lines) and plotting each line on the graph. Let's consider the labor
constraint line first:
x1 + 2x2 = 40
• shows that point A is indeed within the constraint area, as these values for x 1 and
x2 yield a quantity that does not exceed the limit of 40 hours. Next, we check
point B at x1 = 40 and x2 = 30:
• Point B is obviously outside the constraint area because the values for x 1 and x2
yield a quantity (100) that exceeds the limit of 40 hours.
Graphical Solutions of Linear Programming Models
We draw the line for the clay constraint the same way as the one for
the labor constraintby finding two points on the constraint line and
connecting them with a straight line. First, let x1 = 0 and solve for x2:
The second step in the graphical solution method is to locate the point
in the feasible solution area that will result in the greatest total profit.
To begin the solution analysis, we first plot the objective function line
for an arbitrarily selected level of profit. For example, if we say profit, Z,
is $800, the objective function is
The Optimal Solution Point
Plotting this line just as we plotted the constraint lines results in the graph shown in Figure below. Every point
on this line is in the feasible solution area and will result in a profit of $800 (i.e., every combination of x1 and
x2 on this line will give a Z value of $800). However, let us see whether an even greater profit will still provide a
feasible solution
The Optimal Solution Point
Merencanakan baris ini sama seperti plot garis batasan hasil dalam grafik yang ditunjukkan pada Gambar di bawah
ini. Setiap titik pada garis ini berada di area solusi yang layak dan akan menghasilkan keuntungan sebesar $ 800
(yaitu, setiap kombinasi x1 dan x2 on line ini akan memberikan nilai Z $ 800). Namun, mari kita lihat apakah laba
yang lebih besar masih akan memberikan solusi yang layak. For example, consider profits of $1,200 and $1,600, as
shown in Figure
The Optimal Solution Point
• To find point B, we place a straightedge parallel to the objective
function line $800 = 40x1 + 50x2 in figure below and move it outward
from the origin as far as we can without losing contact with the
feasible solution area. Point B is referred to as the optimal (best)
solution.
• Substituting x2 = 8 into either one of the original equations gives a value for x1:
• Thus, the optimal solution at point B in Figure 2.11 is x1 = 24 and x2 = 8. Substituting these values into the
objective function gives the maximum profit,