| English | 中文 |
Use this skill to solve a synthetic CGE tutorial, design a CGE model, inspect supplied source, or reproduce its benchmark and scenarios. Start with the CGE method for the scientific logic. CHEER and CHEER-P remain external GAMS source examples. This skill has a direct Python script but no registered AirMosaic tool ID; it does not bundle CHEER code, GAMS, a solver license or a real SAM.
The reviewed Python script reads a manifest-listed synthetic SAM, a scenario table and environmental satellite coefficients. It calibrates a closed-economy model with matching activity/commodity accounts, two factors, one household, fixed intermediate requirements, Cobb-Douglas value added and household demand. Cobb-Douglas substitution elasticity 1 is a chosen assumption, not estimated from the SAM. Wage is the numeraire. It checks a balanced SAM, reproduces the zero-shock benchmark, then solves a productivity scenario with changing prices, outputs and factor demands. The satellite emissions calculation is one-way and does not alter equilibrium.
From the repository root, in a Python 3.10+ environment with the dependencies in requirements.txt, set AIRMOSAIC_ASSETS_DIR to an existing external root and choose a fresh output directory:
$out = Join-Path $env:AIRMOSAIC_ASSETS_DIR 'results/cge-toy-example-v1'
python skills/model/01_socioeconomic_natural_change/cge/scripts/run_toy_cge.py --input-dir assets/data/01_socioeconomic_natural_change/SyntheticCGE/v1 --out-dir $out
Inspect calibration.csv, equilibrium.csv, summary.csv and validation.json. The baseline must reproduce 100 units of output and price 1 in both sectors; the synthetic satellite total is 50 kg. In food_productivity_reduction, the food TFP multiplier is 0.9, food output is about 92.77 and its relative price about 1.08485. The script rejects unbalanced or unsupported SAM flows, incomplete scenarios, nonpositive TFP and existing or Git-contained destinations before writing results. Check the input hashes against toy-manifest.json. This is numerical execution of this tutorial, not CHEER or a calibrated economy.
The electricity technology split workbook is included with this skill and is read directly by the accounting script. Follow CGE Model Extensions for the command, input schema and output checks. This example checks benchmark technology accounts; it does not solve the full CHEER model. Workbook provenance and its separate dataset-license status are recorded in source.json.
Define the question, region and sector resolution, benchmark year, agents, goods, factors, trade and time structure. Obtain a documented social accounting matrix (SAM) and check row-column balance before calibration. State behavioral nests, tax and transfer treatment, market-clearing equations, price normalization, macro closure and elasticity sources. Implement those choices in an appropriate modeling language, calibrate the benchmark, and require a zero-shock solve that reproduces the SAM before interpreting a policy shock. Record which quantities are data, calibrated values, externally estimated parameters or scenario assumptions. Model design alone is not a numerical run.
run.gms, sets.gms, cal.gms, elasticities.gms, emission.gms, core.gms, dynamic files and report files. Other CGE packages use different names and languages. Separate executable lines from comments and unused files.gams run.gms lo=2 is an example for an active GAMS run.gms, not a universal CGE command. Preserve the original files and save the exact command, log and generated reports.Report whether the work is model design, source inspection, successful numerical reproduction, or scientifically checked scenario analysis, with evidence for the level reached. The CHEER downloads and GAMS MPSGE documentation are upstream references; neither verifies a particular local run.
The public general-equilibrium model-builder skill informed the agent/endowment/market-clearing reasoning sequence. Its Julia code implements Cobb-Douglas pure exchange only. For production, SAM, dynamics and CHEER source edits, use the example and extension guide to identify the corresponding modules; a pure-exchange solve is not CHEER reproduction.