Chapter 3 Linear Programing
Chapter 3 Linear Programing
Chapter 3 Linear Programing
Linear Programming
1
Introduction to Linear Programming
■ Programming is the process of creating a set of instructions that tell a
computer how to perform a task.
■ Programming can be done using a variety of computer programming
languages, such as JavaScript, Python, and C++.
■ The term ―linear programming‖ consists of two words as linear and
programming. The word ―linear‖ defines the relationship between multiple
variables with degree one. The word ―programming‖ defines the process of
selecting the best solution from various alternatives.
■ Linear programming is a mathematical modeling technique in which a linear
function is maximized or minimized when subjected to various constraints.
■ A Linear Programming model seeks to maximize or minimize a linear
function, subject to a set of linear constraints.
■ Linear programming (LP) is one of the simplest ways to perform
optimization.
■ Optimization involves the selection of the ―best‖ solution from among the
set of candidate solutions.
2
Introduction to Linear Programming
Unconstrained and Constrained optimization
■ Unconstrained simply means that the choice variable can take on any
value—there are no restrictions.
■ Constrained means that the choice variable can only take on certain
values within a larger range.
■ A constraint is a hard limit placed on the value of a variable, which
prevents us from going forever in certain directions.
Components of Linear Programming: the basic components of the LP are as
follows:
Decision Variables: Quantities to determine
Constraints: Represents how each decision variable would use limited
amounts of resources
Data: Explains the relationships between the objective function and the
constraints
Objective Functions: The function that is optimized in a linear programming
problem. Describes how each decision variable affect the property that
should be optimized
3
An equality constrained optimization problem is a linear programming
problem involves constraints that contain equalities. E.g the budget line
4
Examples of constraints : time, money, and resources.
The amounts of these things are limited, and these limits also place
limits on the best possible value of the objective function.
The Importance of Linear Programming
– Many real world problems lend themselves to linear
programming modeling.
– Many real world problems can be approximated by linear models.
– There are well-known successful applications in: Economics ,
Marketing, Finance (investment),Advertising and Agriculture
5
■ The Importance of Linear Programming
– There are efficient solution techniques that solve linear programming
models.
– The output generated from linear programming packages provides
useful “what if” analysis.
6
The Galaxy Industries Production Problem –
A Prototype Example
■ Galaxy manufactures two toy doll models:
– Space Ray.
– Zapper.
■ Resources are limited to
– 1000 pounds of special plastic.
– 40 hours of production time per week.
■ Marketing requirement
– Total production cannot exceed 700 dozens.
– Number of dozens of Space Rays cannot exceed number of dozens
of Zappers by more than 350.
■ Technological input
– Space Rays requires 2 pounds of plastic and 3 minutes of labor per
dozen.
– Zappers requires 1 pound of plastic and 4 minutes of labor per
dozen.
7
CONT…
■ The current production plan calls for:
– Producing as much as possible of the more profitable
product, Space Ray ($8 profit per dozen).
– Use resources left over to produce Zappers ($5 profit
per dozen), while remaining within the marketing guidelines.
8
• Management is seeking a
production schedule that
will increase the company’s profit.
9
■ Decisions variables:
■ Objective Function:
10
Product No of Production Profit
Units process per unit
Raw Labor
material
Space Ray X1 2 3 $8
Zapper X2 1 4 $5
Resources
The feasible set or feasible region is the set of all feasible solutions.
An optimal solution is the feasible solution that produces the best objective
function value possible
Unbounded region A feasible region that is not completely enclosed by a polygon. The
associated linear programming problem may not have a finite solution.
X1
13
Graphical Analysis – the Feasible
Region
X2
Infeasible
Feasible
Production
Time
3X1+4X2 2400 500 700
X1
14
Graphical Analysis – the Feasible
Region
X2
1000 The Plastic constraint
2X1+X2 1000
700 Total production constraint:
X1+X2 700 (redundant)
500
Infeasible
Production mix
constraint:
Feasible X1-X2 350
Production
Time
X1
3X1+4X22400 500 700
Interior points. Boundary points. Extreme points.
• There are three types of feasible points 15
Solving Graphically for an Optimal Solution
Note that each extreme point is formed by the intersection of two or more
constraints.
To find the exact coordinate values for the optimum from the graph:
1.We identify the constraints that intersect to form the extreme point.
16
The search for an optimal solution
X1
500 17
Summary of the optimal solution
18