1R2 Linear Programming
1R2 Linear Programming
Model
The Linear Programming Model (LP)
• All mathematical functions are linear functions.
• The word “programming” does not refer to
computer programming; rather, it is a synonym
for planning.
• involves the planning of activities to obtain
optimal result.
1 1 0 4
2 0 2 12
3 3 2 18
Profit/Batch $3,000 $5,000
For Educational Purposes Only
Example 1: The Product-Mix Problem
In model formulation, we just need to identify the decision variables,
the objective function and the constraints. Since we need to find out
the number of batches of products 1 and 2 needed to produce weekly to
maximize the profit, let our decision variables X1 and X2 be the
number of batches of product 1 and product 2 needed to be produced
weekly. Our objective function is to maximize z where z is your profit
and it is equal to 3,000x1 + 4000X2. Check the units of your equation,
the Left Hand Side (LHS) of the equation must have the same units
with the Right Hand Side (RHS) of the Equation. The profit must have
a unit of dollars, the units of your decision variables are in batches of
each product and the units of 3,000 and 4,000 is in $ / batch. So, the
unit of dollars in the LHS of the equation must be equal to the
remaining units in the RHS which isPurposes
For Educational in dollars
Only also.
Formulation of the LP Model
Decision Variables
x1 = number of batches of Product 1 produced/week
x2 = number of batches of Product 2 produced/week
Objective Function
The daily profit realized from selling batches of Product 1
is 3,000 x1. Similarly, we can get 5,000 x2 from Product 2.
The total profit, Z, is therefore, 3000x1 + 5000x2. This is to be
maximized.
For Educational Purposes Only
Example 1: The Product-Mix Problem
The objective function is subjected to the following constraints:
• 1st constraint is for plant 1: there are 4 hours of production time
available/week and 1 batch of product 1 is produced in 1 hour so it is expressed
as: x1 < 4. It is less than or equal to because the maximum time to work is
4hrs.
• 2nd constraint is for plant 2: there are 12 hours of production time
available/week and 1 batch of product 2 is produced in 2 hours so it is expressed
as: 2x2 < 12
• 3rd constraint is for plant 3: there are 18 hours of production time
available/week and 1 batch of product 1 is produced in 3 hours and 1batch of
product 2 is produced in 2 hours so it is expressed as: 3x1 + 2x2 < 18
• finally, it is not possible to produce a negative number of sets; values of
both x1 and x2 must be nonnegative (zero or positive). This is the Last constraint
which is the NonnegativityConstraint. This is expressed as: x1 > 0, x2 > 0.
For Educational Purposes Only
Formulation of the LP Model …
The Constraints of the System: Production Time/Plant
• Plant 1 Constraint – there are 4 hours available/week. This is
expressed as: x1 < 4
• Plant 2 Constraint – there are 12 hours available/week. This
limitation is expressed as: 2x2 < 12
• Plant 3 Constraint – there are 18 hours available/week. This is
expressed as: 3x1 + 2x2 < 18
• Nonnegativity Constraint – finally, it is not possible to produce a
negative number of sets; that is, both x1 and x2 must be
nonnegative (zero or positive).
This is expressed as: x1 > 0, x2 > 0.
For Educational Purposes Only
Formulation of the LP Model
Decision Variables
x1 = number of batches of Product 1 produced/week
x2 = number of batches of Product 2 produced/week
Objective Function
max z = 3000x1 + 5000x2
subject to: x1 < 4 (Plant 1 constraint)
2x2 < 12 (Plant 2 constraint)
3x1 + 2x2 < 18 (Plant 3 constraint)
x1 > 0, x2 > 0 (Nonnegativity Constraint)
Subject to :
Available blends: Sales ratio: x1 = 1.5 x2
Baraco : 0.2 x1 + 0.6 x2 < 160 Total cups: x1 + x2 < 480
Bukidnon : 0.35 x1 + 0.1 x2 < 160 Brewing cap.: x1 + x2 < 300
Kalinga: 0.45 x1 + 0.3 x2 < 160 Non-negativity: Z, x1, x2> 0