macrostat.models.GL06PC.variables#

Variables class for the Godley-Lavoie 2006 PC model.

Classes

VariablesGL06PC([variable_info, timeseries, ...])

Variables class for the Godley-Lavoie 2006 PC model.

class macrostat.models.GL06PC.variables.VariablesGL06PC(variable_info: dict | None = None, timeseries: dict | None = None, parameters: ParametersGL06PC | None = None, *args, **kwargs)[source]#

Bases: Variables

Variables class for the Godley-Lavoie 2006 PC model.

check_health(tolerance: float = 0.0001)[source]#

Check the health of the variables by verifying that the redundant equations hold and that all the assets and liabilities are positive.

Parameters:

tolerance (float (default: 1e-4)) – The tolerance for the checks.

Equations

Redundant equations:
\begin{align} H_h(t) = H_s(t) \end{align}
General checks:
\begin{align} A(t) &> 0 & L(t) &> 0 \end{align}

where \(A(t)\) are all assets and \(L(t)\) are all liabilities.

Returns:

True if the variables are healthy, False otherwise.

Return type:

bool

get_default_variables()[source]#

Return the default variables information dictionary.

version = 'GL06PC'#