Getting Started
This quick start shows the minimal steps to install the core JCGE packages and run a reference model. For full workflows and modeling guidance, see the Guides.
Prerequisites
- Julia 1.10 or later installed and on your PATH.
- A clean project environment (recommended).
Install
Create or activate a project and install the packages used in these guides.
import Pkg
Pkg.activate(".")
Pkg.add([
"JCGECore",
"JCGEBlocks",
"JCGERuntime",
"JCGECalibrate",
"JCGEOutput",
"JCGEExamples",
])Run a reference model
using JCGEExamples
result = JCGEExamples.StandardCGE.solve()Inspect results
Collect the solved values and diagnostics with JCGEOutput. The tidy rows contain variable levels and any available duals and accounting checks.
using JCGEOutput
results = collect_results(result)
rows = tidy(results)Solver note
For mixed complementarity models, see the PATHSolver setup in Running Models.
Agent interface
If you want to use JCGE through an MCP-compatible AI assistant, configure the released MCP server in the client, or install JCGEAgentInterface in a dedicated MCP host environment:
import Pkg
Pkg.add("JCGEAgentInterface")Your model package does not need to depend on or import the agent interface. The AI Agent Interface guide explains the released server, Docker image, and the separate-host pattern used when an agent needs to run a model.
Next steps
- Read the Modeling guide to understand blocks and model structure.
- Try policy optimization to search for a policy that meets an objective and an outcome constraint.
- Follow the Calibration and Output guides for data workflows and reporting.