cge_modeling.base.cge.CGEModel.check_for_equilibrium#
- CGEModel.check_for_equilibrium(data, tol=1e-06, print_equations=True)#
Verify if a given state of the model is an equilibrium.
- Parameters:
- data: dict, InferenceData, or xr.Dataset
The state of the model to check. Must contain values for all variables and parameters in the model.
- tol: float
The tolerance for the squared error of the system of equations. Defaults to 1e-6.
- print_equations: bool
If true, prints the symbolic equation along with the name and residuls for each equations that exceeds the tolerance.
Notes
The data argument is expected to be either a dictionary of variable and parameter values.