Skip to content

Mathematics · Ch 7 — Linear Programming

Mathematical formulation of L.P.P.

7.2.2

Mathematical formulation of L.P.P.

Mathematical formulation of an L.P.P. follows a fixed three-step working rule:

  • Step 1 — identify the decision variables: assign symbols, typically x,yx,y (or x1,x2x_1,x_2 for more than two

    quantities), to the unknown quantities the problem is asking to determine.

  • Step 2 — identify the objective function: write the quantity to be maximized or minimized (profit, cost, distance,

    etc.) as a linear mathematical expression in terms of the decision variables just assigned.

  • Step 3 — identify the constraints: express every resource limit, minimum requirement, or other restriction stated

    in the problem as a linear equation or inequation in the decision variables, and add the non-negativity constraints.

Solved Example 1 — Toy manufacturer (bicycles and tricycles). A manufacturer produces bicycles and tricycles, each

processed through Machine A (max. 120 hours/day) and Machine B (max. 180 hours/day). A bicycle needs 4 hours on A and 10

hours on B; a tricycle needs 6 hours on A and 3 hours on B. Profits are Rs.65 per bicycle and Rs.45 per tricycle.

Formulating: let xx = number of tricycles and yy = number of bicycles produced, so x≥0, y≥0x\ge0,\ y\ge0. The total profit is

z=45x+65yz=45x+65y, to be maximized. From the machine-hours table (6 hrs/tricycle + 4 hrs/bicycle on Machine A, capped at 120;

3 hrs/tricycle + 10 hrs/bicycle on Machine B, capped at 180), the remaining constraints are 6x+4y≤1206x+4y\le120 and

3x+10y≤1803x+10y\le180. The formulated L.P.P. is: Maximize z=45x+65yz=45x+65y subject to x≥0, y≥0, 6x+4y≤120, 3x+10y≤180x\ge0,\ y\ge0,\ 6x+4y\le120,\ 3x+10y\le180.

Solved Example 2 — Toy company (cutting and assembling). A company manufactures toys A and B. Toy A needs 2 minutes

cutting + 1 minute assembling; toy B needs 3 minutes cutting + 4 minutes assembling. There are 3 hours (=180 minutes)

available for cutting and 2 hours (=120 minutes) for assembling. Profit is Rs.10 per toy A and Rs.20 per toy B.

Formulating: let xx = toys of type A and yy = toys of type B, so x≥0, y≥0x\ge0,\ y\ge0. Total profit

P=10x+20yP=10x+20y, to be maximized. The cutting-time constraint is 2x+3y≤1802x+3y\le180 and the assembling-time constraint is

x+4y≤120x+4y\le120. The formulated L.P.P. is: Maximize P=10x+20yP=10x+20y subject to x≥0, y≥0, 2x+3y≤180, x+4y≤120x\ge0,\ y\ge0,\ 2x+3y\le180,\ x+4y\le120.

Solved Example 3 — Horticulturist's fertilizer mix. A horticulturist wants to mix two fertilizer brands to provide at

least 15 units of potash, 20 units of nitrate, and 24 units of phosphate. Brand I (Rs.120/unit) supplies 3 units potash, 1

unit nitrate, 3 units phosphate per unit; Brand II (Rs.60/unit) supplies 1 unit potash, 5 units nitrate, 2 units

phosphate per unit. Formulating: let xx = units of Brand I and yy = units of Brand II, so x≥0, y≥0x\ge0,\ y\ge0. The total

cost is z=120x+60yz=120x+60y, to be minimized. Since each nutrient has a stated MINIMUM requirement, all three nutrient rows

become ≥\ge constraints: 3x+y≥153x+y\ge15 (potash), x+5y≥20x+5y\ge20 (nitrate), 3x+2y≥243x+2y\ge24 (phosphate). The formulated L.P.P. …

Table 1Solved Example 1's machine-hours table (bicycles and tricycles)
MachineTricycles (xx)Bicycles (yy)Availability
A64120
Table 2Solved Example 3's brand/nutrient table (horticulturist's fertilizer mix)
Brand ContentI per unitII per unitMinimum requirement
Potash3115
Nitrate1520