Lesson 1
Linear Programming Formulation
Formulating a linear programming problem (LPP) means translating a word problem into decision variables, an objective function and constraints. There are no fixed steps, so you read the data carefully, tabulate it, and convert units where needed. A two-product profit-maximisation example shows the full process.
Approach
- Read the statement and arrange the data in a table: products as columns, and constraints plus profit as rows.
- Define one decision variable per product: two products need x1 and x2, three products need three variables.
- Build the objective function from the profit (maximisation) or cost (minimisation) per unit.
- Write each resource or market condition as a constraint, then add non-negativity: x1, x2 >= 0.
Worked example data
- Machine time is 10 min per unit of A and 2 min per unit of B. The machine can run at most 35 hours per week.
- Raw material is 1 kg per unit of A and 0.5 kg per unit of B. Supply is 600 kg per week.
- The market requires at least 800 units of B per week.
- Profit per unit = selling price - cost price. For A: 10 - 5 = Rs 5. For B: 8 - 6 = Rs 2.
Formulation
- Let x1 = units of A per week and x2 = units of B per week.
- Maximise Z = 5x1 + 2x2.
- Time constraint: 10x1 + 2x2 <= 35 × 60 = 2100 minutes, which simplifies to 5x1 + x2 <= 1050.
- Raw material constraint: x1 + 0.5x2 <= 600.
- Market constraint: x2 >= 800.
- Non-negativity: x1, x2 >= 0.
Tips
- Keep units consistent. Convert hours to minutes (× 60) when the per-unit times are in minutes.
- Profit may need to be derived, for example from selling price and cost price, or from a percentage.
- A capacity limit gives <=. A word like 'minimum' or 'at least' gives >=, even in a maximisation problem.
- A constraint may involve only one product.
Key terms
- Decision variable
- An unknown quantity to be decided, such as the units produced of each product.
- Objective function
- The linear expression to be maximised (profit) or minimised (cost).
- Constraint
- A linear inequality expressing a limit on resources or a market requirement.
- Non-negativity
- The condition that decision variables cannot be negative.
Lesson 2
Simplex Method and Duality
The simplex method solves a linear programming problem by moving through a sequence of tables, improving the objective each iteration until the optimality condition on Cj - Zj holds. Worked example: maximize Z = 12x1 + 16x2 subject to 10x1 + 20x2 <= 120 and 8x1 + 8x2 <= 80, which gives x1 = 8, x2 = 2 and Z = 128. Duality pairs every LP (primal) with a related LP (dual) that has the same optimal value.
Setting up the initial simplex table
- Convert each <= constraint into an equation by adding one slack variable: 10x1 + 20x2 + S1 = 120 and 8x1 + 8x2 + S2 = 80.
- Slack variables get a cost of 0 in the objective: Z = 12x1 + 16x2 + 0S1 + 0S2, with all variables >= 0.
- Table columns are CB (cost of the basic variable), the basic variables, the coefficients of x1, x2, S1, S2, the solution, and the ratio.
- The Cj row holds the objective coefficients: 12, 16, 0, 0.
- The initial basic variables are the slack variables S1 and S2, starting with solutions 120 and 80.
Iteration steps
- Zj for each column = sum of (CB x column entry). In the initial table every Zj is 0 because all CB values are 0.
- Compute Cj - Zj for each column.
- Optimality for maximization: all Cj - Zj <= 0. For minimization: all Cj - Zj >= 0.
- Key column: the column with the largest positive Cj - Zj. This variable enters the basis.
- Ratio = solution / key column entry. The key row is the row with the smallest ratio; its variable leaves the basis.
- Key element: the entry where the key row and key column intersect.
- New key row = old key row / key element.
- Other rows: new value = old value - (corresponding key column value x corresponding key row value) / key element.
Worked example trace
- Initial table: Cj - Zj = 12, 16, 0, 0. x2 enters. Ratios are 120/20 = 6 and 80/8 = 10, so S1 leaves and the key element is 20.
- Iteration 1: the x2 row becomes 1/2, 1, 1/20, 0 | 6. The S2 row becomes 4, 0, -2/5, 1 | 32. Cj - Zj = 4, 0, -4/5, 0.
- x1 enters. Ratios are 6/(1/2) = 12 and 32/4 = 8, so S2 leaves and the key element is 4.
- Iteration 2: the x1 row becomes 1, 0, -1/10, 1/4 | 8. The x2 row becomes 0, 1, 1/10, -1/8 | 2. Cj - Zj = 0, 0, -2/5, -1, so the table is optimal.
- Solution: x1 = 8, x2 = 2, Z = 12(8) + 16(2) = 128.
- Read the solution from the solution column. The x1 and x2 coefficients (12 and 16) are not the values of x1 and x2.
Duality
- Every primal LP has a dual LP. A maximization primal with <= constraints corresponds to a minimization dual with >= constraints.
- Each primal constraint gives one dual variable, and each primal variable gives one dual constraint.
- The primal objective coefficients become the dual right-hand sides, and the right-hand sides become the dual objective coefficients. The coefficient matrix is transposed.
- At the optimum, the primal and dual objective values are equal.
- Dual for the example: minimize W = 120y1 + 80y2 subject to 10y1 + 8y2 >= 12, 20y1 + 8y2 >= 16, y1, y2 >= 0.
- The optimal dual values (shadow prices) can be read from the final table as -(Cj - Zj) of the slack columns: y1 = 2/5, y2 = 1. Check: W = 48 + 80 = 128.
Key terms
- Slack variable
- A non-negative variable added to a <= constraint to turn it into an equation; its cost is 0.
- Cj - Zj
- The net evaluation of a column, used to test optimality and to choose the entering variable.
- Key column
- The column with the largest positive Cj - Zj in a maximization problem; its variable enters the basis.
- Key row
- The row with the minimum ratio (solution / key column entry); its variable leaves the basis.
- Key element
- The entry at the intersection of the key row and the key column.
- Dual
- A companion LP built from the primal by swapping the roles of the objective and constraints; it has the same optimal value.
Lesson 3
Transportation Problem (North-West Corner, VAM)
The transportation problem is a special LP that ships goods from sources to destinations so that total cost is minimised, subject to supply and demand limits. An initial basic feasible solution can be found by the North-West Corner, Least Cost or Vogel's Approximation (VAM) methods. Optimality is checked afterwards.
Basics
- Balanced problem: total supply = total demand.
- Unbalanced problem: add a dummy row or dummy column with zero costs to balance it before solving.
- Phase 1: find an initial basic feasible solution. Phase 2: test and improve it to reach optimality.
- Allocation rule for every method: allocate min(supply, demand) to the chosen cell, then cross out the row or column that becomes 0.
North-West Corner method
- Start at the top-left (north-west) cell of the remaining table.
- Allocate min(supply, demand), update the balances, and delete the exhausted row or column.
- Repeat with the new north-west cell. The method ignores costs.
- Example result: total cost = 4,400.
Least Cost method
- Choose the cell with the lowest cost among the unallocated cells. Break ties arbitrarily.
- Allocate min(supply, demand) and delete the exhausted row or column.
- Example result: total cost = 2,900.
Vogel's Approximation Method (VAM)
- For each row and column, the penalty = second-lowest cost - lowest cost.
- Select the row or column with the highest penalty.
- Within it, allocate min(supply, demand) to the lowest-cost cell.
- Delete the exhausted row or column, recompute penalties for the remaining cells, and repeat.
- Example result: total cost = 2,850. VAM is usually the best of the three starting methods.
Total cost
- Total cost = sum of (allocation x unit cost) over all allocated cells.
- In a balanced problem, the last cell always has supply equal to demand.
Key terms
- Balanced transportation problem
- A problem where total supply equals total demand.
- Dummy row/column
- A zero-cost row or column added to balance supply and demand.
- North-West Corner method
- Allocates starting from the top-left cell, without considering costs.
- Least Cost method
- Allocates first to the cheapest remaining cell.
- Penalty (VAM)
- The difference between the two lowest costs in a row or column.
Lesson 4
Assignment Problem (Hungarian Method)
The assignment problem assigns jobs to operators one-to-one so that total time or cost is minimised. The Hungarian method first reduces rows and columns, then covers the zeros with lines and adjusts the matrix until an optimal set of independent zeros exists. In the 5x5 example, the minimum total processing time is 38 hours.
Basics
- The assignment problem is a special transportation problem: each source fills exactly one destination.
- Balanced problem: number of rows = number of columns. Otherwise, add a dummy row or column of zeros.
Phase 1: reduction
- Row reduction: subtract each row's minimum from every entry in that row.
- Column reduction: subtract each column's minimum from every entry in that column. A column whose minimum is 0 stays unchanged.
Phase 2: optimisation
- Row scanning: if a row has exactly one uncovered zero, mark it with a square and draw a vertical line through its column. Skip rows with more than one zero.
- Column scanning: if a column has exactly one uncovered zero, mark it with a square and draw a horizontal line through its row.
- If the number of squares equals the number of rows, the solution is optimal. Read the assignments from the squared zeros.
- Otherwise, find the minimum uncovered value. Subtract it from all uncovered cells, add it at line intersections, and leave all other entries unchanged. Then repeat the scanning.
Example result
- After one adjustment (minimum uncovered value = 1), five squares were marked, so the solution is optimal.
- Assignments: J1-O5 (7), J2-O1 (6), J3-O3 (6), J4-O2 (9), J5-O4 (10).
- Total processing time = 38 hours. Always read the times from the original matrix.
Key terms
- Hungarian method
- An algorithm for solving assignment problems using matrix reduction and covering zeros with lines.
- Row/column reduction
- Subtracting the row or column minimum from every entry in that row or column, which creates zeros.
- Intersection cell
- A cell covered by both a vertical and a horizontal line; the minimum uncovered value is added to it.
- Dummy row/column
- A row or column of zeros added to make the matrix square.
Lesson 5
Decision Theory
Decision making is the selection of one course of action from two or more available alternatives, carried out through a series of steps called the decision-making process. Decisions are made in one of three environments, depending on how much information is available: certainty, risk and uncertainty.
Decision Making
- Decision making means selecting one course of action from two or more possible alternatives.
- Example: Rs 1 lakh can be invested in an FD at SBI (about 7%), PNB (7.1%) or Central Bank, or in equity, which might multiply the money or wipe it out.
- Decision-making process: the series of steps (search, research, data collection, evaluation) an individual takes to find the best option for meeting personal or organisational needs.
- The better the choices you make, the better the decision maker you are, e.g. promoting the candidate who then performs well as sales manager.
Decision Environment
- The decision environment is the setting in which a decision is made.
- It depends on the information available (complete, partial or none), knowledge of the situation, the nature of the problem (production, investment, etc.) and the degree of risk.
- It is classified into three types: certainty, risk and uncertainty.
Decision Making under Certainty
- Accurate, measurable and reliable information is available.
- Each alternative has only one outcome, e.g. a fixed deposit at 7.1% is guaranteed.
- Decisions are easy and least risky, with no dilemma.
- Techniques: linear programming, transportation, assignment, inventory models (EOQ, reorder point), capital budgeting and break-even analysis.
Decision Making under Risk
- Information is incomplete, but the decision maker knows the probability of each outcome.
- Each alternative has multiple outcomes, e.g. equity with a 0.5 chance of loss and a 0.5 chance of profit.
- Such decisions can be very successful or a disaster for the organisation.
- Approach: analyse every alternative using the available information, estimate the risk in each, then decide.
Decision Making under Uncertainty
- The decision maker is not aware of all the alternatives, the risks involved or the consequences.
- There are multiple outcomes, but their probabilities are unknown.
- Example: a grocery shop owner deciding how many milk packets to stock each day without knowing tomorrow's demand.
Key terms
- Decision making
- Selecting one course of action from two or more alternatives.
- Decision-making process
- The series of steps taken to determine the best option or course of action.
- Decision environment
- The conditions, such as the information available and the risk involved, under which a decision is made.
- Certainty
- An environment with complete information, where each alternative has a single known outcome.
- Risk
- An environment with multiple outcomes per alternative whose probabilities are known.
- Uncertainty
- An environment with multiple outcomes per alternative whose probabilities are unknown.
