hyunjoopark
← Back to Notes

Energy System Modeling / Concepts

Mixed Complementarity Problem

Created · Updated

Several players each optimise their own objective → no single objective → not one LP. MCP = each player’s KKT Conditions + the linking constraints (e.g. market balance), solved together. Its solution is a Nash equilibrium: no player can gain by changing its decision alone.

Nash game with price-taking suppliers

Each supplier takes the price λ\lambda as given (cic_i = marginal cost of supplier ii = its bid PisP^s_i in Market Clearing): max⁡qi(λ−ci) qis.t. qi≥0  (μi)linking: D−∑iqi=0  (λ)\max_{q_i} (\lambda - c_i)\, q_i \quad \text{s.t. } q_i \ge 0 \;(\mu_i) \qquad\qquad \text{linking: } D - \sum_i q_i = 0 \;(\lambda) KKT of supplier ii: ci−λ−μi=0c_i - \lambda - \mu_i = 0, μiqi=0\mu_i q_i = 0, μi≥0\mu_i \ge 0, qi≥0q_i \ge 0 Compact (complementarity) form: 0≤qi⊥ci−λ≥00 \le q_i \perp c_i - \lambda \ge 0

Stacked KKTs = KKTs of the Market Clearing problem → same solution → the dual of the balance is the price the players react to. Market clearing is the equivalent optimisation problem of this game.

Finding the equilibrium by hand: guess λ\lambda

D=10D = 10, c1=10c_1 = 10, c2=30c_2 = 30 (μi=ci−λ\mu_i = c_i - \lambda):

Guessμ1\mu_1μ2\mu_2Supply
λ=5\lambda = 55 → q1=0q_1 = 025 → q2=0q_2 = 00 ≠ 10✗
λ=10\lambda = 100 → q1=10q_1 = 1020 → q2=0q_2 = 010✓
λ=20\lambda = 20−10✗ μ≥0\mu \ge 0 violated

Reading μi\mu_i: loss per unit if supplier ii is forced to produce one more = cost − price → Complementary Slackness.

Nash-Cournot

Each supplier knows its output moves the price → the inverse demand goes into its objective (no separate balance constraint): λ=λ‾−β (q1+q2)max⁡(λ‾−β(q1+q2)−ci) qis.t. qi≥0  (μi)\lambda = \overline{\lambda} - \beta\,(q_1 + q_2) \qquad \max \big(\overline{\lambda} - \beta(q_1 + q_2) - c_i\big)\, q_i \quad \text{s.t. } q_i \ge 0 \;(\mu_i)

  • λ‾\overline{\lambda} = price at zero supply (intercept), β\beta = price drop per extra unit
  • One Lagrangian per player, each differentiated only w.r.t. its own qiq_i (summing profits = cartel/monopoly, not Cournot)
  • Stationarity = the reaction function (ER: FOC) + the μi\mu_i term

μi=(ci−λ)⏟the new unit+βqi⏟price drop on all own units=MC−MR\mu_i = \underbrace{(c_i - \lambda)}_{\text{the new unit}} + \underbrace{\beta q_i}_{\text{price drop on all own units}} = MC - MR

Both produce (μi=0\mu_i = 0) → λ=ci+βqi\lambda = c_i + \beta q_i → markup (price − MC) =βqi= \beta q_i λ−ci⏟gain: margin on one more unit=βqi⏟loss: price drop×all own units\underbrace{\lambda - c_i}_{\text{gain: margin on one more unit}} = \underbrace{\beta q_i}_{\text{loss: price drop} \times \text{all own units}} → the firm stops where what it gains from one more unit equals what it loses on the units it already sells (supplier 1: 46.7−10=5×7.33=36.746.7 - 10 = 5 \times 7.33 = 36.7)

  • Price taker: βqi\beta q_i term missing → λ=MC\lambda = MC, markup 0
  • Larger producer → larger markup → withholds output → Market Power (ER: MR=MCMR = MC, Monopoly)
Markup ≠ marginal profit
  • Markup =P−MC= P - MC (price vs cost of the last unit) → βqi>0\beta q_i > 0
  • Marginal profit =dπ/dq=MR−MC= d\pi/dq = MR - MC → 0 at the optimum (that’s where the firm stops)
  • They differ because MR=P−βqi<PMR = P - \beta q_i < P: one more unit lowers the price on all own units
  • μi=MC−MR=−(marginal profit)\mu_i = MC - MR = -(\text{marginal profit}) → producing (μi=0\mu_i = 0) ⇔ marginal profit 0 = FOC
GameMarket structureConditionMarkup
Nash, price takerPerfect CompetitionP=MR=MCP = MR = MC0
Nash-CournotOligopolyMR=MCMR = MC, P>MRP > MRβqi\beta q_i
Profits summed (cartel)MonopolyMR=MCMR = MC on total QQlargest

Example (λ‾=100\overline{\lambda} = 100, β=5\beta = 5, c1=10c_1 = 10, c2=30c_2 = 30): q1=22/3q_1 = 22/3, q2=10/3q_2 = 10/3, λ=140/3≈46.7\lambda = 140/3 \approx 46.7 → markups 36.7 and 16.7 (lecture example, ESM W7 MCP lecture)

Typical traps
  • max → min: Li=−πi+μi(−qi)L_i = -\pi_i + \mu_i(-q_i)
  • Don’t drop μi\mu_i when differentiating (the result is then only the ER FOC)

Links: Market Clearing, KKT Conditions, Complementary Slackness, Perfect Competition, Market Power, Monopoly