Subject: Class 12 Mathematics Chapter: Objective Function Topic: 13.3 Objective Function – Formulate objective functions correctly
The objective function is the mathematical heart of a linear programming problem. It is the linear expression Z = ax + by that tells us what we are trying to achieve, and every other part of the problem exists only to support the search for its best value. Whether we want to maximize profit or minimize cost, the objective function converts that desire into a single mathematical expression that can be studied, optimized, and finally converted into a business decision.
The word objective is important. A problem may have many quantities of interest, but only one of them is selected as the objective. In a manufacturing problem, for example, the number of items produced, the quantity of raw material used, and the total profit are all interesting, but the objective function selects profit as the quantity to be maximized while the others appear only as constraints or as intermediate information.
In this chapter we study the structure of the objective function, the difference between maximization and minimization, and the correct method of building the objective function from the data of a word problem. Special attention is paid to the coefficients of the function, because the coefficients carry the information about profit per unit or cost per unit, and a single misplaced coefficient changes the entire solution.
The objective function of a two variable linear programming problem has the standard form Z = ax + by, where x and y are the decision variables and a and b are constants called the coefficients of the objective function.
Solved Example 1: A company sells two products P and Q. The profit on each unit of P is Rs 30 and on each unit of Q is Rs 45. If x units of P and y units of Q are sold, write the objective function for total profit.
Solution: - Step 1: Total profit comes from P and Q. - Step 2: Profit from P = 30x and profit from Q = 45y. - Step 3: Objective function: Maximize Z = 30x + 45y.
The objective function can also be written with negative coefficients when a quantity is to be subtracted, such as total profit = revenue minus cost. In such problems one can either form a single net expression or form two separate expressions and combine them. The important point is that the final objective function must be a single linear expression in the decision variables.
The direction of optimization is decided by the nature of the quantity being studied.
Solved Example 2: A transporter must carry at least 200 tonnes of goods. Truck A carries 5 tonnes per trip at a cost of Rs 4000 per trip, and truck B carries 8 tonnes per trip at a cost of Rs 6000 per trip. If x trips of A and y trips of B are used, write the objective function for the transportation cost.
Solution: - Step 1: Cost of x trips of A = 4000x and cost of y trips of B = 6000y. - Step 2: The quantity to be kept small is the total cost. - Step 3: Objective function: Minimize Z = 4000x + 6000y.
Solved Example 3: A small bakery makes cakes and pastries. Each cake gives a profit of Rs 120 and each pastry gives a profit of Rs 40. The bakery also knows that each cake takes 30 minutes and each pastry takes 10 minutes, with at most 300 minutes available. Write the objective function and state its direction of optimization.
Solution: - Step 1: Let x = number of cakes and y = number of pastries. - Step 2: Profit is the quantity to be maximized. - Step 3: Objective function: Maximize Z = 120x + 40y. - Step 4: The time limitation 30x + 10y ≤ 300 is a constraint and does not belong in the objective function.
Formulating the objective function correctly is a skill that requires reading the problem carefully and identifying exactly which quantity is to be optimized. The following steps are recommended.
Solved Example 4: A furniture workshop makes chairs and tables. Each chair uses 3 units of wood and 2 hours of labour, and each table uses 6 units of wood and 3 hours of labour. The workshop has 180 units of wood and 100 hours of labour. The profit is Rs 200 per chair and Rs 350 per table. Formulate the complete linear programming problem.
Solution: - Step 1: Let x = number of chairs and y = number of tables. - Step 2: Objective function: Maximize Z = 200x + 350y. - Step 3: Wood constraint: 3x + 6y ≤ 180. - Step 4: Labour constraint: 2x + 3y ≤ 100. - Step 5: Non-negativity restrictions: x ≥ 0, y ≥ 0.
Solved Example 5: A dealer has two investment options. Option M gives a return of 8 percent per year and option N gives a return of 6 percent per year. The dealer invests Rs x in M and Rs y in N. Write the objective function for the total annual return.
Solution: - Step 1: Return from M = 0.08x and return from N = 0.06y. - Step 2: The total annual return is the sum of the two returns. - Step 3: Objective function: Maximize Z = 0.08x + 0.06y.
The coefficient of each variable is always the per unit profit or per unit cost of that variable. A common trap is swapping the coefficients, for example giving the chair profit to the table variable. Students should therefore label their variables with their units and check that the coefficient of x refers to the product represented by x before writing the final answer.
| Situation | Quantity optimized | Direction | Form of Z |
|---|---|---|---|
| Manufacturing | Total profit | Maximize | Z = profit per unit × x + profit per unit × y |
| Distribution | Total cost | Minimize | Z = cost per unit × x + cost per unit × y |
| Investment | Annual return | Maximize | Z = rate × amount in scheme M + rate × amount in scheme N |
| Diet planning | Food cost | Minimize | Z = cost per unit of food A × x + cost per unit of food B × y |
| Feature | Correct form | Incorrect form |
|---|---|---|
| Variables | First power only | x², xy, √x |
| Coefficients | Per unit profit or cost | Available resources |
| Constant term | Absent or absorbed | Present as a fixed number |
| Direction | Maximize or Minimize written clearly | Direction missing |
| Other quantities | Belong to constraints | Mixed into Z |
flowchart TD
A[Objective Function] --> B[Standard Form]
A --> C[Direction of Optimization]
A --> D[Coefficients]
A --> E[Formulation]
B --> F[Z = ax + by]
C --> G[Maximize profit and revenue]
C --> H[Minimize cost and time]
D --> I[Profit per unit or cost per unit]
D --> J[Multiply by the variables]
E --> K[Read the aim of the problem]
E --> L[Write Z with the correct direction]
F --> M[Used in corner point method]
The objective function converts the aim of a real problem into a single linear expression Z = ax + by whose optimum we must find, and it is therefore the quantity that ties together the constraints, the feasible region, and the corner point method. Formulating it correctly requires three simple disciplines: choosing the right direction, multiplying each variable by its own per unit value, and keeping the function strictly linear without resource quantities creeping in. A student who masters these disciplines can write the objective function of any word problem in a few seconds, and the remaining work of drawing the region and testing corner points becomes a pure mechanical exercise that rewards careful, systematic work.