Linear Programming
Linear Programming
(CSM 393)
Linear Programming
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 2 / 24
Structure Of Linear Programming Model
The general structure of an LP model consists of following three basic
components (or parts)
Decision variables (activities). The evaluation of various courses of
action (alternatives) and select the best to arrive at the optimal value of
objective function, is guided by the nature of objective function and
availability of resources. For this, certain activities (also called decision
variables) usually denoted by x1 , x2 , ..., xn are conducted. The value of
these variables (activities) represents the extent to which each of these is
performed. For example, in a product-mix manufacturing problem, an LP
model may be used to determine units of each of the products to be
manufactured by using limited resources such as personnel, machinery,
money, material, etc.
These decision variables, usually interrelated in terms of consumption of
resources, require simultaneous solutions. In an LP model all decision
variables are continuous, controllable and non negative. That is,
x1 ≥ 0, x2 ≥ 0, ..., xn ≥ 0.
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 3 / 24
The objective function The objective function of each LP problem is
expressed in terms of decision variables to optimize the criterion of
optimality (also called measure-of-performance) such as profit, cost,
revenue, distance etc. In its general form, it is represented as:
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 4 / 24
The constraints There are always certain limitations (or constraints) on
the use of resources, such as: labour, machine, raw material, space,
money, etc., that limit the degree to which an objective can be achieved.
Such constraints must be expressed as linear equalities or inequalities in
terms of decision variables. The solution of an LP model must satisfy
these constraints
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 5 / 24
General Mathematical Model of Linear Programming
and x1 , x2 , . . . , xn ≥ 0.
The above formulation can also be expressed in a compact form as follows.
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 6 / 24
Cont’d
n
X
Optimize (Max. or Min.) Z = cj xj (Objective function) (1)
j=1
and
The bi represents the total availability of the ith resource. The term
resource is used in a very general sense to include any numerical value
associated with the right-hand side of a constraint. It is assumed that
bi ≥ 0 for all i. However, if any bi < 0, then both sides of the constraint
are multiplied by −1 to make bi > 0 and reverse the inequality of the
constraint.
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 8 / 24
Guidelines on Linear Programming Model Formulation
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 9 / 24
Cont’d
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 10 / 24
Cont’d
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 11 / 24
Examples of LP Model Formulation
Example
Midtown Manufacturing Company makes plastic plates and cups, both of
which require time on two machines. Manufacturing a run of plates
requires one hour on machine A and two on machine B, and producing a
run of cups requires three hours on machine A and one on machine B.
Each machine is operated for at most 15 hours per day. Write a system of
inequalities that express these restrictions, and sketch the feasible region
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 12 / 24
Solution
machine A: machine B:
x + 3y ≤ 15 2x + y ≤ 15
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 13 / 24
Cont’d
Example
A manufacturing company is engaged in producing three types of
products: A, B and C. The production department produces, each day,
components sufficient to make 50 units of A, 25 units of B and 30 units of
C. The management is confronted with the problem of optimizing the
daily production of the products in the assembly department, where only
100 man-hours are available daily for assembling the products. The
following additional information is available:
Types of Products Profit Contribution per Product Assembly Time(hrs)
A 12 0.8
B 20 1.7
C 45 2.5
Table: Example Table
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 14 / 24
Cont’d
Example Continued
The company has a daily order commitment for 20 units of products A
and a total of 15 units of products B and C. Formulate this problem as an
LP model so as to maximize the total profit.
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 15 / 24
Solution
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 16 / 24
Solution Cont’d
Decision Variables: Let x1 , x2 , and x3 = number of units of products A,
B, and C to be produced, respectively.
The LP Model: Maximize (total profit):
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 18 / 24
Solution
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 19 / 24
Solution Cont’d
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 20 / 24
Solution Cont’d
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 21 / 24
Example
A person requires at least 10 and 12 units of chemicals A and B
respectively, for his garden. A liquid product contains 5 and 2 units of A
and B respectively per bottle. A dry product contains 1 and 4 units of A
and B respectively per box. If the liquid product sales for Rs. 30 per
bottle, dry product sales for Rs. 40 per box. How many of each should be
purchased in order to minimize the cost and meet the requirements?
Formulate the L.P.P.
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 22 / 24
Solution
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 23 / 24
The constraints for the problem are as follows:
1 Chemical A Requirement:
5x1 + 1x2 ≥ 10
2 Chemical B Requirement:
2x1 + 4x2 ≥ 12
3 Non-Negativity Constraints:
x1 ≥ 0, x2 ≥ 0
Dr. Bright Owusu Operations Research I (CSM 393) Linear ProgrammingJanuary 21, 2025 24 / 24