Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Weak-constraint 4DVar on Lorenz-63 — analysis + free forecast

Same as strong-4DVar but the dynamics are no longer a hard constraint. The control is augmented with a per-step model-error trajectory {ηt}t=1Tassim\{\eta_t\}_{t=1}^{T_\text{assim}}:

xt=M(xt−1)+ηt,ηt∼N(0,Q).x_t = M(x_{t-1}) + \eta_t, \qquad \eta_t \sim \mathcal{N}(0, Q).

The cost gains 12∑t∥ηt∥Q−12\tfrac{1}{2}\sum_t \|\eta_t\|^2_{Q^{-1}}. On a perfect-model L63 benchmark this is a handicap, and on longer assim windows the enlarged control space makes BFGS unstable — we use a shorter assim window (T_assim=20) here so the solver converges. The free-forecast (with model error set to zero) then extends to the full 10-time-unit window.

1. Shorter assim window for weak-4DVar stability

2. Build Weak-4DVar

Note the additional model_err_cov_op argument — here we reuse B_op_state as QQ.

Weak-4DVar rmse_assim    = 0.420
Weak-4DVar rmse_forecast = 0.755
Weak-4DVar rmse_total    = 0.753
Weak-4DVar runtime       = 2502.4 ms

3. Trajectories

<Figure size 1100x650 with 3 Axes>

4. RMSE(t)

<Figure size 1000x350 with 1 Axes>

5. Discussion

Weak-4DVar trades a higher analysis RMSE for protection against model error. On the perfect-model Lorenz benchmark this is a handicap — the perfect-model assumption is true, so strong-4DVar wins. In operational settings where the forward model is approximate (coarse fluid dynamics, sub-grid processes), the same setup gives strong-4DVar a falsely confident analysis and weak-4DVar a calibrated one.

Known limitation (documented in the project README): on L63 with default assim windows of 0.5 time units, weak-4DVar’s BFGS inner solver diverges — the enlarged (x0,η1,...,ηT)(x_0, \eta_1, ..., \eta_T) control space (3 + 3T parameters) is poorly conditioned for the chaotic-rollout cost gradient. This notebook uses a shorter 0.1-time-unit assim window to keep weak’s optimisation well-conditioned.