A solver for nonlinear, dynamic, stochastic, rational expectations equilibrium models
A MATLAB solver for nonlinear, dynamic, stochastic, rational expectations
equilibrium models. RECS stands for “Rational Expectations Complementarity
Solver”. This name emphasizes that RECS has been developed specifically to solve
models that include complementarity equations, also known as models with
occasionally binding constraints.
Christophe Gouel (christophe.gouel@inrae.fr)
Main page is at: www.recs-solver.org.
RECS Toolbox releases are available at
https://github.com/christophe-gouel/RECS/releases.
Why is this archive 20 MB? Much of this size is due to an executable for
Windows. The executable file includes a complete Python distribution necessary
to parse RECS model files.
recsfolder
(avoid folder names that includecompeconfolder
;addpath('compeconfolder/CEtools','compeconfolder/CEdemos')
;mexall
in MATLAB prompt to create all CompEcon mex files.addpath('recsfolder')
.recsdemos
. You can also access RECS documentation in MATLAB by typing doc
.Python 2.7.X and the following packages are required on Linux and Mac, and on
Windows when installing from source:
To make the Python programs available to RECS, you have two options:
Install them in a virtual Python environment. By default, RECS looks for a
folder PythonVirtualEnv inside the Python folder. To do the installation,
from RECS folder type in a terminal
cd Python
virtualenv PythonVirtualEnv
source PythonVirtualEnv/bin/activate
pip install numpy PyYAML sympy==0.7.2
deactivate
If your default Python installation is not the version 2.7.X, replace the
second command by
virtualenv PythonVirtualEnv -p /usr/bin/python2.7
where /usr/bin/python2.7
should be replaced by the address of your Python
2.7.X interpreter.
Alternatively, if your Python distribution is Anaconda, you can create from
RECS folder the virtual environment by
conda create -p ./Python/PythonVirtualEnv python=2.7 numpy PyYAML sympy==0.7.2
Install them in your default Python installation (recommended only if you do
not use Python otherwise). In this case, just type
pip install numpy PyYAML sympy==0.7.2
If you want to work with the bleeding edge version of RECS, which may be
unstable, or if you want to contribute to RECS development, you need to install
RECS from source. The installation requires Git.
When installing from source, all platforms (Linux, Mac, and Windows) require
Python 2.7.X, along with
NumPy, PyYaml, and
SymPy version 0.7.2. See above for instructions.
Optionnaly, under Windows, to be able to generate a binary to run to the solver
without a Python installation, one can also install
PyInstaller and make its folder available in
Windows Path.
git clone https://github.com/christophe-gouel/RECS.git recs
cd recs
), download recs submodules with two commands:git submodule init
and git submodule update
.compeconfolder
;addpath('compeconfolder/CEtools','compeconfolder/CEdemos')
;mexall
in MATLAB prompt to create all CompEcon mex files.addpath('recsfolder')
.recsInstall
.recsdemos
. You can also access RECS documentation in MATLAB by typing doc
.RECS source can be found on the following git repository:
https://github.com/christophe-gouel/RECS.git.
Unless stated otherwise, all files in the RECS toolbox are licensed using the
Expat license, a permissive free software license. Please see the software
license for
more information.