Proposition: Optimality Conditions in Policy Iteration
Let’s examine a fundamental proposition that establishes optimality conditions for policy iteration in infinite horizon discounted cost problems. This proposition provides crucial insights into why policy iteration converges to optimal policies.
Statement of the Proposition
Consider a stationary policy $\bar{\mu}$ that satisfies the Bellman optimality condition:
This can be expressed more explicitly for all states $i = 1,2,\ldots,n$ as:
Key Properties
The proposition establishes two fundamental properties:
Global Policy Dominance: For all states $i = 1,2,\ldots,n$ and any alternative policy $\mu$:
$$ \underbrace{J_{\bar{\mu}}(i) \leq J_{\mu}(i)}_{\substack{\text{Policy } \bar{\mu} \text{ achieves lower or equal cost} \\ \text{compared to any other policy } \mu \text{ at every state}}} $$Strict Improvement Condition: If $\bar{\mu}$ is not optimal, then there exists at least one state $s$ where:
$$ \underbrace{J_{\bar{\mu}}(s) < J_{\mu}(s)}_{\substack{\text{Strict cost improvement exists} \\ \text{at state } s \text{ for some better policy}}} $$
Implications and Significance
This proposition has several important implications:
- Optimality Verification: A policy satisfying the Bellman equation is guaranteed to be at least as good as any other policy across all states
- Improvement Guarantee: Non-optimal policies must have room for improvement in at least one state
- Convergence Foundation: These properties ensure that policy iteration will continue improving until reaching an optimal policy
- Termination Condition: When no further improvements are possible, we have reached global optimality
This theoretical foundation explains why policy iteration is a powerful algorithm for finding optimal policies in infinite horizon discounted cost problems.
Policy Iteration Algorithm
The policy iteration algorithm consists of three main steps that are repeated until convergence:
Step 1: Policy Initialization
Initialize with any stationary policy $\mu^0$:
Step 2: Policy Evaluation
Given a stationary policy $\mu^k$, compute the corresponding cost $J^{\mu^k}$ by solving the linear system:
Which can be equivalently written as:
Or in operator notation:
Step 3: Policy Improvement
Obtain a new stationary policy $\mu^{k+1}$ satisfying:
Termination Check
- If $J^{\mu^{k+1}} = J^{\mu^k}$: then the current policy $\mu^k$ is optimal and the algorithm terminates.
- Else: Set $k = k + 1$ and return to Step 2
Note that both $g_{\mu^k}$ and $P_{\mu^k}$ are computed using the current policy $\mu^k$ as follows:
- For the cost vector $g_{\mu^k}$:
- For the probability transition matrix $P_{\mu^k}$:
where $n$ is the total number of states in the system.
This algorithm systematically improves the policy until reaching optimality, with each iteration guaranteed to either:
- Strictly improve the policy, or
- Confirm the current policy is optimal
The convergence is finite since:
- There are only finitely many deterministic stationary policies
- Each iteration either improves or terminates
- The algorithm cannot revisit a previous policy