Seaside Computable General Equilibrium (CGE)#
Description
A computable general equilibrium (CGE) model is based on fundamental economic principles. A CGE model uses multiple data sources to reflect the interactions of households, firms, and relevant government entities as they contribute to economic activity. The model is based on (1) utility-maximizing households that supply labor and capital, using the proceeds to pay for goods and services (both locally produced and imported) and taxes; (2) the production sector, with perfectly competitive, profit-maximizing firms using intermediate inputs, capital, land, and labor to produce goods and services for both domestic consumption and export; (3) the government sector that collects taxes and uses tax revenues in order to finance the provision of public services; and (4) the rest of the world. The output of this analysis are CSV files with cge simulations, domestic supply and employment.
Related publications
Input parameters
key name |
type |
name |
description |
---|---|---|---|
|
|
Solver output |
Print solver output. |
|
|
Solver path |
Path to ipopt package. |
Input datasets
key name |
type |
name |
description |
---|---|---|---|
|
Social matrix |
A social accounting matrix. |
|
|
Capital composition |
A matrix of functioning capital. |
|
|
HH Table |
HH Table. |
|
|
Employment |
Commercial sector employment data. |
|
|
Labor |
A matrix of workers groups in the economy. |
|
|
Capitol shocks random number |
Random numbers for the change of capital stocks. |
|
|
Capital shocks |
Building states to capital |
Output datasets
key name |
type |
name |
description |
---|---|---|---|
|
Cge simulations |
A dataset containing Seaside cge simulations (format: CSV). |
|
|
Employment supply results |
A dataset of changes in employment and supply. |
(* required)
Execution
code snippet:
# Create Seaside CGE Model
seaside_cge = SeasideCGEModel(client)
# Set analysis input parameters (both optional)
seaside_cge.set_parameter("print_solver_output", False)
seaside_cge.set_parameter("solver_path", "ipopt")
# Set analysis input datasets
seaside_cge.load_remote_input_dataset("SAM", sam)
seaside_cge.load_remote_input_dataset("BB", bb)
seaside_cge.load_remote_input_dataset("EMPLOY", employ)
seaside_cge.load_remote_input_dataset("JOBCR", jobcr)
seaside_cge.load_remote_input_dataset("HHTABLE", hhtable)
seaside_cge.load_remote_input_dataset("SIMS", sims)
seaside_cge.load_remote_input_dataset("sector_shocks", sector_shocks)
# Set analysis parameters
seaside_cge.set_parameter("solver_path", "ipopt")
seaside_cge.set_parameter("model_iterations", 1)
# Run Seaside CGE model analysis
seaside_cge.run_analysis()
full analysis: seaside_cge.ipynb