The particle method comprises alternating backward and forward sweeps and tests for convergence to determine said optimal course of action.