Simulating the Ramsey Cass Koopmans Model
Simulating the Ramsey-Cass-Koopmans Model Using MATLAB and Simulink
Many economic and financial models, such as those for resource allocation or optimal growth, involve systems of differential equations with no explicit analytical solution. Solving these systems numerically and visualizing results are important tasks for economists and other financial analysts.
Using the fundamental Ramsey-Cass-Koopmans (RCK) model as an example, this code, along with the corresponding technical article, describes two workflows for creating, simulating, and visualizing a system of ordinary differential equations (ODEs). One approach is based on MATLAB®, the other on Simulink®. The MATLAB approach uses programming techniques familiar to financial professionals who work in a technical computing environment. The Simulink approach offers a visual modeling environment and graphical representation of the system.
Installation and Getting Started
The examples are provided in a MATLAB project.
- Double-click on the project archive (
RCK.mlproj
) to extract it using MATLAB. - With MATLAB open, navigate to the newly-created project folder and double-click on the project file (
RCK.prj
) to open the project. - The example files are the live scripts within the project.
-
createRCKModel.mlx
: This example shows how to define and solve the Ramsey-Cass-Koopmans model using MATLAB. -
createRCKModel.mlx
: This example shows how to define and solve the Ramsey-Cass-Koopmans model using MATLAB and the time elimination method to solve the system of ODEs. -
defineRCMParams.mlx
: This example contains the parameter definitions used in the Ramsey-Cass-Koopmans model. The parameters are stored in a structure for later reuse. -
parallelRCKMATLAB.mlx
: This example shows how to simulate the MATLAB version of the Ramsey-Cass-Koopmans model using parallel computing constructs to speed up the simulation process. -
parallelRCKSimulink.mlx
: This example shows how to simulate the Simulink version of the Ramsey-Cass-Koopmans model using parallel computing constructs to speed up the simulation process. -
plotPhasePortrait.mlx
: This example shows how to visualize the 2D phase plane corresponding to the system of ODEs defined by the Ramsey-Cass-Koopmans model. -
plotRCKSimulink.mlx
: This example shows how to simulate the Simulink version of the Ramsey-Cass-Koopmans model.
-
MathWorks® Product Requirements
This example was updated using MATLAB release R2022b.
License
The licenses for this entry are available in the license.txt and license_ds2nfu.txt files in this GitHub repository.
Copyright 2016-2023 The MathWorks, Inc.
Community Support
Zitieren als
Ken Deeley (2024). Simulating the Ramsey Cass Koopmans Model (https://github.com/mathworks/simulating-the-ramsey-cass-koopmans-model-using-matlab-and-simulink/releases/tag/v1.0.3), GitHub. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Mathematics > Numerical Integration and Differential Equations > Ordinary Differential Equations >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.3.0 | See release notes for this release on GitHub: https://github.com/mathworks/simulating-the-ramsey-cass-koopmans-model-using-matlab-and-simulink/releases/tag/v1.0.3 |
||
1.0.2.0 | See release notes for this release on GitHub: https://github.com/mathworks/simulating-the-ramsey-cass-koopmans-model-using-matlab-and-simulink/releases/tag/v1.0.2 |
||
1.0.1 | See release notes for this release on GitHub: https://github.com/mathworks/simulating-the-ramsey-cass-koopmans-model-using-matlab-and-simulink/releases/tag/v1.0.1
|
||
1.0.0.0 |