04 — CAMCGE#

Open In Colab

CAMCGE is the published Cameroon 1987 model retained as an independent replication benchmark. v0.8.0 makes it a first-class installed model without forcing it into the Hosoe closure.

%pip install -q "https://github.com/miraflor/CGE-core/releases/download/v0.8.0/cge_core-0.8.0-py3-none-any.whl"
from cge_core import CamCGE

base = CamCGE.example().solve()
base.summary()
print("objective omega:", base.objective)
print("closure:", base.closure)

Reproduce a published-style experiment#

The first experiment raises foreign saving (fsav) to 500.

windfall = base.scenario("Oil windfall / foreign saving = 500")
windfall.set("fsav", None, 500)
result = windfall.solve()
result.summary()
result.compare(base).query("component in ['xd', 'pd', 'p', 'e', 'mq', 'wa']").head(40)

The detailed benchmark and experiment tolerances remain in CAMCGE_VALIDATION_REPORT.md and the cam/replicate_*.py regression scripts. The high-level façade changes accessibility, not the published equations.