Perturbation
function
dolo.algos.perturbation.perturb(model, details=True, verbose=True, steady_state=None, eigmax=0.999999, solve_steady_state=False, order=1)Compute first order approximation of optimal controls
Parameters
model(Model) — NumericModel Model to be solvedverbose(bool, optional) — boolean If True: displays number of contracting eigenvaluessteady_state(optional) — ndarray Use supplied steady-state value to compute the approximation. The routine doesn't check whether it is really a solution or not.solve_steady_state(optional) — boolean Use nonlinear solver to find the steady-stateorders— {1} Approximation order. (Currently, only first order is supported).
Returns
TaylorExpansion: Decision Rule for the optimal controls around the steady-state.