MPSGE in Julia: Bringing Open-Source and Efficient Computation to concise CGE Model formation
Main Article Content
Abstract
This paper introduces MPSGE.jl, a free and open-source package in Julia that facilitates CGE model building from tabular definitions. The package’s programmatically generated equations reduce redundant and repetitive code, errors, and development time. The built-in functions simplify troubleshooting, analysis, and reports. Embedding within a general-use scientific language enables streamlined integration with general-use functions and tools. The design combines computational efficiency with intuitive syntax and model formation. The open-source foundation allows for greater access, and user contributions to ongoing development. This work is a contribution to the open-science movement, with the aim of increasing access, robustness, transparency, and collaboration. We give an overview of how to use the package, its construction, and highlight some of its features. We include example models of different forms and scale as illustrations. First, we employ a simple toy model to introduce the basic structure. Then, we illustrate how the flexibility of MPSGE in Julia can facilitate functionality not possible in the GAMS progenitor. With a third example model, we demonstrate the package used at scale by evaluating tariff effects using a model with five household types for each U.S. state. We link to the package and its documentation for further reading and utilization.
Article Details
Issue
Section
Authors who publish with this journal agree to the following terms:
a. Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
b. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
c. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).