Model Definition API#

The model-definition classes contain the economic algebra. The lower-level public namespace gives them scientific model names while preserving the validated underlying implementations.

from cge_core.models import SplCGE, StdCGE

They are passed to CGE(model=..., data=...); the public façade then manages the benchmark/scenario lifecycle through the existing engine-backed model definition.

Simple model — SplCGE#

SplCGE is the public alias for the Hosoe simple closed-economy model definition.

cge_core.models.SplCGE#

alias of SplModelDef

Standard model — StdCGE#

StdCGE is the public alias for the Hosoe standard open-economy model definition. Its accounts= argument remains available for relabelled institutional accounts when using cge_core.sam.

cge_core.models.StdCGE#

alias of StdModelDef

The historical class names and import locations remain available for existing code, but examples and new documentation use cge_core.models.

From code back to economics#

The implementation above corresponds to the economic blocks documented in:

For the complete equation-name crosswalk to the GAMS reference, see The Standard CGE Model (stdcge).