GTAP Resources: Resource Display
| GTAP Resource #7683 |
|---|
|
"Comparing general equilibrium modeling in Julia and GAMS: An example using CSAVE" by Chen, Y.-H. Henry Abstract As an open-source programming language, Julia has become increasingly popular in scientific computing, due in part to its nonproprietary nature, high performance, and extensive ecosystem of packages. The goals of this paper are threefold: (1) to provide readers with an introduction to constructing a computable general equilibrium (CGE) model in Julia using MPSGE.jl, a package syntactically comparable to the MPSGE subsystem in GAMS that offers a compact framework for model formulation; (2) to compare the time required to generate and solve the same model implemented in Julia with MPSGE.jl and in GAMS/MPSGE; and (3) to demonstrate the time-saving benefits of encapsulating the CGE model within a Julia function. Under a given computer specification and model design, GTAP 9 data at various levels of aggregation are used to evaluate model runtime. The results indicate that, overall, the Julia implementation runs faster: although it requires slightly longer model generation time, it achieves substantially shorter solving time, a difference that becomes more pronounced as data resolution increases. The study also confirms that wrapping the Julia model in a function can further accelerate the solving process. Using a two-region, 56-sector setting as an example, the time-saving results are supported by statistical tests at the 1% significance level. |
| Resource Details () | GTAP Keywords | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
- Environmental policies - Software and modeling tools - Global - North America |
| Attachments |
|---|
|
If you have trouble accessing any of the attachments below due to disability, please contact the authors listed above.
Public Access GTAP Resource 7683 (807.4 KB) Replicated: 0 time(s)Restricted Access No documents have been attached. Special Instructions No instructions have been specified. |
| Comments (0 posted) |
|---|
|
You must log in before entering comments.
No comments have been posted. |
Last Modified: 4/2/2026 12:49:52 PM
GTAP Resource 7683


