IDEAS home Printed from https://ideas.repec.org/p/ags/pugtwp/333479.html
   My bibliography  Save this paper

Runge-Kutta integrators for fast and accurate solutions in GEMPACK

Author

Listed:
  • Schiffman, Florian

Abstract

In GEMPACK, models are always solved as initial value problems(IVP)using the linearized form of the levels equations. While this allows the user to solve each step of the IVP efficiently, the overall accuracy and speed is determined by the integration scheme and the number of integration steps. Up to GEMPACK 12.1, only the Euler, leapfrog midpoint and Gragg’s method were available as well as their 2 and 3 point Richardson extrapolations. While Euler provides excellent stability it is very costly to obtain accurate solutions. In contrast the latter two integrators allow for faster convergence but oftentimes suffer from instabilities. In the current beta version of GEMPACK we address this issue by introducing explicit and embedded Runge Kutta (RK) integrators as an alternative. Our focus in this work is on the embedded RK methods. Using the embedded RK methods we developed a new adaptive step size algorithm that is designed to overcome problem common to CGE models. Such problems include asymptotes in the levels variables as well as coping with the different scales on which the results can vary. Our algorithm provides rapid convergence towards the true solution as well as increased robustness exceeding that of Eulers method. In addition, the new algorithm allows us to provide users with a component-by-component global error estimate. In all our tests we have found that the error estimates appeared to be upper bounds of the true error. Furthermore, this compenent-by-component error estimates are an excellent debugging tool when developing or extending a CGE model.In all but the simplest test cases, we have found that using adaptive step size embedded RK methods provided solutions at least one order of magnitude closer to the true solution in less than half the time to solution required by the old integration schemes.

Suggested Citation

  • Schiffman, Florian, 2022. "Runge-Kutta integrators for fast and accurate solutions in GEMPACK," Conference papers 333479, Purdue University, Center for Global Trade Analysis, Global Trade Analysis Project.
  • Handle: RePEc:ags:pugtwp:333479
    as

    Download full text from publisher

    File URL: https://ageconsearch.umn.edu/record/333479/files/11062.pdf
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    Research and Development/Tech Change/Emerging Technologies;

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:ags:pugtwp:333479. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: AgEcon Search (email available below). General contact details of provider: https://edirc.repec.org/data/gtpurus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.