Networked Intertemporal Optimization ā Ramsey Planner on Graphs
Based on notes by Anarkitty Ā· Physics-Economics Field Theory Analogy
This simulator implements a networked intertemporal optimization model ā a Ramsey-style social planner's problem generalized to a graph-structured economy. The model combines heterogeneous agents (households with different preferences) and network geography (goods move along graph edges) into a unified framework with deep analogies to lattice field theory in physics.
The planner maximizes welfare over an infinite horizon (approximated by finite T):
Where β ā (0,1) is the discount factor, Ļįµ are welfare weights (Pareto weights tracing the efficiency frontier), and uįµ(c) is household d's utility from consumption vector c at time t.
Node-level flow balance (conservation on the graph):
Production + net transfers in - consumption - change in stock = 0, at every node, every period. This is the economic analogue of a continuity equation on a graph.
Network stability condition:
The spectral radius of the adjacency matrix must be strictly below one. This ensures the Neumann series (I - A)ā»Ā¹ = Ī£ā Aįµ converges ā the network's "Green's function" exists.
Attaching multipliers Ī»āā½ā±ā¾ (node balance) and μāā½įµā¾ (goods accounting):
Consumption:
Welfare-weighted marginal utility equals shadow price.
Transfers:
Shadow values equalize across connected nodes ā a no-arbitrage condition in space.
Euler Equation (Ramsey condition):
The shadow value of resources today equals their discounted shadow value tomorrow, gross of the marginal product of storage. This is the intertemporal no-arbitrage condition.
To a physicist, the economic Lagrangian is a familiar object in unfamiliar dress. It has exactly the structure of a classical field theory ā but defined on a discrete spacetime and extremized for a different reason.
| Physics (Continuum) | Economics (These Notes) |
|---|---|
| Field Ļ(x,t) | Consumption c, transfers T, stocks S at node-time (i,t) |
| Spacetime point (x,t) | Node-date pair (i,t) ā a lattice, not a continuum |
| Action S[Ļ] = ā«dt dx ā | Welfare W = Ī£ā βįµ{...} |
| Lagrangian density ā | Per-period welfare plus constraint terms |
| Time integral ā«dt | Discrete sum Ī£āāā^ā |
| Space integral ā«dx | Sum Σᵢ over nodes (space is a graph) |
| Multiplier field Ī»(x,t) | Multiplier "fields" Ī»āā½ā±ā¾, μāā½įµā¾ on the node-time lattice |
| Euler-Lagrange equation | Discrete Euler equation Ī»ā = β(1+MP)Ī»āāā |
| Conjugate momentum p = āā/āqĢ | Shadow price Ī» = āV/āS (envelope theorem) |
| Hamilton-Jacobi equation | Bellman equation V(S) = max{u(c) + βV(S')} |
| Green's function (I-A)ā»Ā¹ = Ī£ā Aįµ | Network resolvent as path expansion |
Physical actions are time-translation invariant, and Noether's theorem delivers conserved energy. The economist's factor βᵠis an explicit time dependence: the future literally counts less. The discrete Noether charge fails to be conserved; in its place the Euler equation prescribes a drift of the shadow price.
Taking the continuous-time limit with discount rate Ļ = -ln(β):
This is mathematically the same as Wick-rotating to Euclidean time with an imaginary-time-dependent potential. The model lives in Euclidean signature ā relaxation, not oscillation.
Physical Lagrangians contain kinetic terms Ļ̲, producing second-order Euler-Lagrange equations: waves, oscillation, propagation. The economic Lagrangian contains ĪS linearly, inside a constraint. The resulting dynamics are first-order difference equations ā relaxation, not ringing. Economic systems decay toward their optima like solutions of a diffusion equation.
One genuine difference remains. In Hamilton's principle, nature extremizes the action and the Euler-Lagrange equations describe what happens. In Ramsey's problem, the planner chooses the path that maximizes welfare, and the Euler equation is a normative optimality condition ā a prescription, not a law of motion. The calculus-of-variations machinery is identical; its ontological status is reversed.
Try these pre-configured scenarios in the simulator: