Lesson 1
Decision-Making Under Certainty, Risk and Uncertainty
Decision-making is selecting one course of action from two or more possible alternatives. The decision environment depends on how much information is available. It may involve certainty (known single outcomes), risk (multiple outcomes with known probabilities) or uncertainty (multiple outcomes with unknown probabilities).
Decision-Making Basics
- Decision-making: selecting a course of action from among two or more possible alternatives.
- Example: investing Rs 1 lakh in a bank FD versus in equity.
- Decision-making process: the series of steps taken to determine the best option to meet goals.
- The decision environment depends on knowledge of the situation, how complete the information is, and the nature of the problem.
Decision-Making under Certainty
- Accurate, measurable and reliable information is available.
- Each alternative has only one outcome. Example: an FD at 7% or 7.1% returns exactly that.
- Easy to decide with low risk. Example: choosing the bank with the highest FD rate.
- Techniques: linear programming, inventory models (EOQ, reorder point), capital budgeting, break-even analysis.
Decision-Making under Risk
- Information is incomplete, but the probabilities of the outcomes are known.
- Each alternative has multiple outcomes. Example: equity with a 0.5 chance of profit and a 0.5 chance of loss.
- Analyse the risk of each alternative using the available information, then choose.
Decision-Making under Uncertainty
- The decision-maker does not know all the alternatives, their risks, or their consequences.
- Multiple outcomes are possible and their probabilities are unknown.
- Example: a grocer deciding how many milk packets to stock when demand is unknown.
Key terms
- Decision-making
- Choosing one course of action from two or more alternatives.
- Certainty
- An environment with complete information and a single known outcome for each alternative.
- Risk
- An environment with multiple outcomes whose probabilities are known.
- Uncertainty
- An environment with multiple outcomes whose probabilities are unknown.
- Decision environment
- The information conditions under which a decision is made.
Lesson 2
Linear Programming Problem 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: read the statement carefully, tabulate the data, convert units consistently and choose the correct inequality direction for each constraint.
Approach to formulation
- No fixed algorithm exists (unlike the simplex method); understand the statement and organise the data.
- Build a table: columns for each product, rows for each resource (time, raw material, market), plus profit and the limitation/capacity.
- Identify the type of problem: maximisation (usually profit) or minimisation (usually cost).
- The number of decision variables equals the number of products (2 products give x1, x2).
Worked example data
- Machine time: A needs 10 min/unit, B needs 2 min/unit; machine runs at most 35 hours/week.
- Raw material: A needs 1 kg/unit, B needs 0.5 kg/unit; supply is 600 kg/week.
- Market: demand for B is at least 800 units/week (no market data for A).
- A costs Rs 5 and sells for Rs 10; B costs Rs 6 and sells for Rs 8.
Building the model
- Profit per unit = SP - CP: A = 10 - 5 = 5, B = 8 - 6 = 2.
- Objective: Maximise Z = 5x1 + 2x2.
- Time: convert hours to minutes, 35 x 60 = 2100, giving 10x1 + 2x2 <= 2100 (or 5x1 + x2 <= 1050).
- Raw material: x1 + 0.5x2 <= 600 (same units, no conversion needed).
- Market: x2 >= 800, because 'minimum' means at least.
- Non-negativity: x1, x2 >= 0.
Common pitfalls
- Profit may not be given directly; derive it from cost and selling price, or from a profit percentage.
- Keep units consistent on both sides of a constraint.
- A constraint may involve only one product.
- Capacity limits use <=; minimum requirements use >=.
Key terms
- Decision variable
- An unknown quantity to be decided, such as units of each product (x1, x2).
- Objective function
- The linear expression to maximise or minimise, e.g. Z = 5x1 + 2x2.
- Constraint
- A linear inequality expressing a limit or requirement on resources or demand.
- Non-negativity condition
- Decision variables cannot be negative: x1, x2 >= 0.
- Profit per unit
- Selling price minus cost price per unit.
Lesson 3
Graphical Method of Linear Programming
The graphical method solves two-variable LPPs by plotting each constraint as a line, finding the feasible region common to all constraints, and evaluating the objective function at the corner points. Special cases include unbounded solutions, infinitely many solutions and no feasible solution.
Procedure
- Treat each constraint as an equation and find its intercepts: set x2 = 0 to get the x1-intercept, and x1 = 0 to get the x2-intercept.
- Plot the lines with x1 on the horizontal axis and x2 on the vertical axis.
- For <=, shade the side towards the origin; for >=, shade the side away from the origin.
- x1, x2 >= 0 restricts the region to the first quadrant.
- The feasible region is the area common to all constraints.
Corner point evaluation
- Find the corner points of the feasible region; solve the line equations simultaneously to get intersections.
- Example: Max Z = 3x1 + 4x2, with x1 + 2x2 <= 4 and 3x1 + 2x2 <= 6.
- Corner points are O(0,0), A(2,0), B(1,3/2) and C(0,2).
- Z values are 0, 6, 9 and 8, so Max Z = 9 at x1 = 1, x2 = 3/2.
- For a minimisation with <= constraints like these, the minimum is usually at the origin (Z = 0).
Minimisation with >= constraints
- With x1 + 2x2 >= 4 and 3x1 + 2x2 >= 6, the region lies outside the lines and is unbounded.
- Corner points are (4,0), (1,3/2) and (0,3); Z = 3x1 + 4x2 gives 12, 9 and 12.
- Min Z = 9 at (1, 3/2).
Special cases
- Unbounded solution: Z can increase without limit over an unbounded region, e.g. maximising over the >= region above.
- Infinite (alternative) optima: two corners give the same optimum, e.g. Z = 3x1 + 2x2 gives 6 at both (2,0) and (1,3/2). Every point on the edge between them is optimal, because the objective line is parallel to a constraint line.
- No feasible solution: the constraint regions have no common area.
Key terms
- Feasible region
- The set of points satisfying all constraints and non-negativity conditions.
- Corner point
- A vertex of the feasible region; an optimum, if it exists, occurs at a corner point.
- Optimal solution
- The feasible point giving the best (maximum or minimum) value of Z.
- Unbounded solution
- The objective can be improved indefinitely within the feasible region.
- Infinite solutions
- Multiple optimal points, occurring when the objective line is parallel to a binding constraint.
- Infeasible problem
- No point satisfies all constraints, so there is no solution.
Lesson 4
Simplex Method Step by Step
The simplex method is an iterative algebraic procedure that moves from one basic feasible solution (corner point) to a better one until the optimum is reached. It can handle LPPs with many variables, where the graphical method is impractical.
Standard form
- Write the problem as a maximisation; Min Z is equivalent to Max (-Z).
- Make every right-hand side non-negative.
- Add a slack variable to each <= constraint, e.g. x1 + 2x2 + s1 = 4.
- Slack variables have zero coefficients in the objective function.
- The initial basic feasible solution sets the decision variables to 0, so the slacks equal the RHS values.
Simplex table iterations
- Compute Zj = sum of (CB x column entries) and the net evaluation Cj - Zj for each column.
- Entering variable: the column with the most positive Cj - Zj (for maximisation).
- Leaving variable: apply the minimum ratio test, RHS / positive key-column entry, and take the smallest ratio.
- The key (pivot) element is where the key row and key column intersect.
- Divide the key row by the pivot element, then make the other entries in the key column zero using row operations.
- Repeat until all Cj - Zj <= 0; the solution is then optimal.
Special cases
- No positive entries in the key column means the solution is unbounded.
- A zero Cj - Zj for a non-basic variable at optimum indicates alternative optimal solutions.
- A tie in the minimum ratio indicates degeneracy.
- Artificial variables (Big-M or two-phase method) are used for >= and = constraints.
Key terms
- Slack variable
- A non-negative variable added to a <= constraint to turn it into an equation.
- Basic feasible solution
- A corner-point solution in which the non-basic variables are zero.
- Entering variable
- The non-basic variable with the most positive Cj - Zj in a maximisation problem.
- Minimum ratio test
- RHS divided by the positive key-column entries; the smallest ratio identifies the leaving variable.
- Pivot element
- The entry at the intersection of the key row and the key column.
Lesson 5
Duality in Linear Programming
Every linear programming problem (the primal) has an associated dual problem built from the same data. Duality theorems link the optimal values and solutions of the two problems, and dual variables can be read as shadow prices of resources.
Forming the Dual
- Primal max Z = c^T x subject to Ax <= b, x >= 0 gives dual min W = b^T y subject to A^T y >= c, y >= 0.
- Each primal constraint gives one dual variable; each primal variable gives one dual constraint.
- The objective coefficients and the right-hand sides swap roles, and the constraint matrix is transposed.
- An equality constraint in the primal gives an unrestricted (free) dual variable, and a free primal variable gives an equality dual constraint.
- The dual of the dual is the primal.
Duality Theorems
- Weak duality: for any feasible x and y in a max primal, c^T x <= b^T y.
- Strong duality: if either problem has a finite optimum, so does the other, and Z* = W*.
- If the primal is unbounded, the dual is infeasible, and vice versa.
- Complementary slackness: at the optimum, y_i * (slack of primal constraint i) = 0 and x_j * (surplus of dual constraint j) = 0.
Interpretation and Use
- The optimal dual variable y_i is the shadow price: the change in Z per unit increase in b_i.
- Optimal dual values can be read from the Cj - Zj (or Zj - Cj) row under the slack columns of the final primal simplex table.
- Solving the dual can be easier when the primal has many constraints and few variables.
Key terms
- Primal
- The original LP problem.
- Dual
- The LP built from the primal by transposing data and swapping objective and RHS roles.
- Shadow price
- The marginal value of one extra unit of a resource, given by the optimal dual variable.
- Complementary slackness
- At the optimum, either a constraint is tight or its corresponding dual variable is zero.
- Weak duality
- For a max primal, any feasible primal value is at most any feasible dual value.
Lesson 6
Transportation Problem: North-West Corner and VAM
The transportation problem finds the minimum-cost way to ship goods from sources to destinations. The North-West Corner Method and Vogel's Approximation Method (VAM) give an initial basic feasible solution, and VAM is usually much closer to the optimum.
Problem Setup
- There are m sources with supplies a_i and n destinations with demands b_j, plus a unit cost c_ij for each route.
- Objective: minimise the sum of c_ij * x_ij, subject to the supply and demand constraints, with x_ij >= 0.
- The problem is balanced when total supply equals total demand.
- If it is unbalanced, add a dummy row or dummy column with zero cost to absorb the difference.
- A non-degenerate basic feasible solution has m + n - 1 allocated cells.
North-West Corner Method
- Start at the top-left cell and allocate min(supply, demand).
- Cross out the row or column that has been satisfied and adjust the remaining supply or demand.
- Move right if the column is satisfied, or down if the row is satisfied, and repeat.
- The method is simple but ignores costs, so the solution is often poor.
Vogel's Approximation Method (VAM)
- For each row and column, compute the penalty: the difference between its two smallest costs.
- Pick the row or column with the largest penalty.
- Allocate as much as possible to the lowest-cost cell in that row or column.
- Cross out the satisfied row or column, recompute the penalties, and repeat.
- VAM usually gives a near-optimal starting solution.
Next Step
- Test the initial solution for optimality with the MODI (u-v) method or the stepping-stone method.
- If fewer than m + n - 1 cells are allocated (degeneracy), add an epsilon allocation to an empty cell.
Key terms
- Balanced problem
- A transportation problem in which total supply equals total demand.
- Dummy row/column
- A fictitious source or destination with zero cost, added to balance the problem.
- Penalty
- In VAM, the difference between the two smallest costs in a row or column.
- Degeneracy
- A situation where fewer than m + n - 1 cells are allocated.
Lesson 7
Assignment Problem: Hungarian Method
The assignment problem assigns n jobs to n agents one-to-one so that total cost is minimised. The Hungarian method solves it by reducing the cost matrix until an optimal assignment can be made using zero-cost cells.
Problem Setup
- There is an n x n cost matrix c_ij, and x_ij = 1 if agent i does job j, otherwise 0.
- Each row and each column receives exactly one assignment.
- It is a special case of the transportation problem in which every supply and demand equals 1.
- For a non-square matrix, add a dummy row or column of zeros.
- For a maximisation problem, subtract every entry from the largest entry, then minimise.
- For a forbidden assignment, use a very large cost M.
Hungarian Method Steps
- 1. Row reduction: subtract each row's minimum from every entry in that row.
- 2. Column reduction: subtract each column's minimum from every entry in that column.
- 3. Cover all zeros using the minimum number of horizontal and vertical lines.
- 4. If the number of lines equals n, an optimal assignment exists among the zeros.
- 5. Otherwise, find the smallest uncovered value k; subtract k from all uncovered entries and add k to entries at line intersections. Return to step 3.
- 6. Make the assignment: pick a row or column with a single zero, assign it, cross out the other zeros in its row and column, and repeat.
Why It Works
- Subtracting a constant from an entire row or column does not change which assignment is optimal.
- A complete assignment using only zeros therefore has the minimum cost.
- Calculate the total cost using the original matrix.
Key terms
- Assignment problem
- A one-to-one allocation of n jobs to n agents that minimises total cost.
- Hungarian method
- An algorithm that solves the assignment problem through matrix reductions and covering zeros with lines.
- Dummy row/column
- A row or column of zero costs added to make the matrix square.
- Line covering
- The minimum number of lines needed to cover all zeros; when it equals n, the assignment is optimal.
Lesson 8
Game Theory: Saddle Point and Mixed Strategies
Game theory studies competitive situations where two or more players choose strategies and their payoffs depend on each other's choices. In two-person zero-sum games, a saddle point gives an optimal pure strategy for each player; when no saddle point exists, players use mixed strategies (probability combinations of their pure strategies).
Basic Concepts
- Two-person zero-sum game: one player's gain equals the other's loss.
- The payoff matrix is written from the row player's (maximizer's) point of view.
- Pure strategy: a player always picks the same single course of action.
- Mixed strategy: a player picks among courses of action with fixed probabilities.
Maximin-Minimax Principle and Saddle Point
- Row player: take the minimum of each row, then choose the maximum of these (maximin = lower value).
- Column player: take the maximum of each column, then choose the minimum of these (minimax = upper value).
- Maximin <= value of game <= minimax.
- If maximin = minimax, that cell is a saddle point; its entry is the value of the game and both players use pure strategies.
- A saddle point is the smallest entry in its row and the largest entry in its column.
- Fair game: value = 0. Strictly determinable game: maximin = minimax.
Mixed Strategies for 2x2 Games
- Use when there is no saddle point.
- For matrix [a b; c d], row player plays row 1 with probability p = (d - c)/((a + d) - (b + c)).
- Column player plays column 1 with probability q = (d - b)/((a + d) - (b + c)).
- Value V = (ad - bc)/((a + d) - (b + c)).
- Dominance: remove rows that are always worse (smaller) and columns that are always worse for the column player (larger) to shrink the matrix first.
- Larger games: graphical method (2xn or mx2) or linear programming.
Key terms
- Payoff matrix
- Table of gains to the row player for every pair of strategies.
- Saddle point
- Entry that is both its row minimum and its column maximum, where maximin equals minimax.
- Value of the game
- Expected payoff to the row player when both play optimally.
- Pure strategy
- Choosing one particular course of action with certainty.
- Mixed strategy
- Randomizing over pure strategies with fixed probabilities.
- Dominance
- Rule for deleting strategies that are never better than another strategy.
Lesson 9
Queuing Theory Basics
Queuing theory analyzes waiting lines to balance the cost of providing service against the cost of customers waiting. The basic M/M/1 model, with Poisson arrivals and exponential service times, gives simple formulas for queue length, waiting time and server utilization.
Elements of a Queuing System
- Input source: the customer population, which may be finite or infinite.
- Arrival process: often Poisson with mean rate lambda.
- Service mechanism: number of servers and service time distribution (often exponential with mean rate mu).
- Queue discipline: FCFS (first come, first served), LCFS, SIRO (service in random order) or priority.
- Customer behaviour: balking (refusing to join), reneging (leaving the queue) and jockeying (switching queues).
Kendall Notation
- Written as (a/b/c):(d/e/f): arrival distribution / service distribution / number of servers : capacity / population / discipline.
- M means Markovian (Poisson arrivals or exponential service times).
- Example: M/M/1 = Poisson arrivals, exponential service, one server.
M/M/1 Formulas (infinite queue, FCFS)
- Traffic intensity (utilization): rho = lambda/mu. Requires lambda < mu for a steady state.
- Probability the system is empty: P0 = 1 - rho.
- Probability of n customers in the system: Pn = (1 - rho) rho^n.
- Average number in system: Ls = lambda/(mu - lambda).
- Average number in queue: Lq = lambda^2/(mu(mu - lambda)).
- Average time in system: Ws = 1/(mu - lambda).
- Average time in queue: Wq = lambda/(mu(mu - lambda)).
- Little's law: L = lambda W.
Key terms
- Arrival rate (lambda)
- Average number of customers arriving per unit time.
- Service rate (mu)
- Average number of customers one server can serve per unit time.
- Traffic intensity (rho)
- lambda/mu, the fraction of time the server is busy.
- Balking
- A customer refuses to join the queue.
- Reneging
- A customer leaves the queue before being served.
- Little's law
- L = lambda W, linking average number in the system to average time spent.
Lesson 10
PERT and CPM Network Analysis
PERT and CPM are network techniques for planning and controlling projects. CPM uses deterministic activity times to find the critical path and floats, while PERT uses three time estimates to handle uncertainty and estimate the probability of finishing on time.
Network Basics
- Activity: a task that consumes time, drawn as an arrow (activity-on-arrow). Event: a start or end point, drawn as a node.
- Dummy activity: takes zero time and is used only to show a dependency.
- Rules: no loops and no dangling activities; there is one start event and one end event.
CPM Calculations
- Forward pass: ES = maximum EF of preceding activities; EF = ES + duration.
- Backward pass: LF = minimum LS of succeeding activities; LS = LF - duration.
- Total float = LS - ES = LF - EF.
- Free float = ES of the successor - EF of the activity.
- Critical activities have zero total float; the critical path is the longest path through the network and sets the project duration.
- Crashing: shorten activities on the critical path at the lowest cost per unit of time saved.
PERT
- Uses three estimates: optimistic (a), most likely (m) and pessimistic (b).
- Expected time te = (a + 4m + b)/6.
- Variance = ((b - a)/6)^2.
- Project mean = sum of te along the critical path; project variance = sum of the critical activities' variances.
- Probability of meeting due date D: Z = (D - mean)/standard deviation, then read the normal table.
- Based on the beta distribution; event-oriented. CPM is activity-oriented and deterministic.
Key terms
- Critical path
- The longest path through the network; its activities have zero float.
- Total float
- Time an activity can be delayed without delaying the project.
- Dummy activity
- A zero-duration activity that only shows a logical dependency.
- Expected time (te)
- PERT estimate (a + 4m + b)/6.
- Crashing
- Reducing project duration by adding resources at extra cost.
