Size: 2161
Comment:
|
Size: 2161
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 39: | Line 39: |
./configure --with-matlab=/usr/local/matlab75 | ./configure --with-matlab=/usr/local/matlab76 |
Line 41: | Line 41: |
(where you should give the right MATLAB installation directory= | (where you should give the right MATLAB installation directory) |
Testing program for problem A
Status of testing program
The program performs the following tests:
- accuracy on a sphere in the state space
- accuracy on a stochastic simulation
- Den Haan Marcet statistics
For the time being, only the following solutions are implemented:
- Krueger, Kubler and Malin (KKM)
- Kim, Kim and Kollman (KKK)
Others are coming soon.
Note: tests for specification A2 with KKM solution give abnormally large errors on marginal labor equation, because KKM did not implement the right specification in that case (they use gamma=1 and eta=1 instead of gamma=0.25 and eta=0.1)
Installing and running the program
The testing program is designed to run on the two following platforms: GNU/Linux and Windows/Cygwin.
You need the following software to run the program:
- GNU C++ compiler (g++)
GNU Fortran 95 compiler (gfortran); under Cygwin, you have to manually install it: the package is downloadable [http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.4-Cygwin-i686.tar.bz2 here], and installation instructions are [http://gcc.gnu.org/wiki/GFortranBinariesCygwin there]
development files for the GNU Scientific Library (GSL), which should be in a package called libgsl0-dev
- GNU make
- subversion
- MATLAB
Download the source of the testing program with:
svn checkout http://www.cepremap.cnrs.fr/svn/JedcTestSuiteTestsA
Then go into the JedcTestSuiteTestsA, and configure the package.
Under GNU/Linux, type:
./configure --with-matlab=/usr/local/matlab76
(where you should give the right MATLAB installation directory)
Under Windows/Cygwin, type:
export FC=/usr/local/gfortran/bin/gfortran export FCLIBS=/usr/local/gfortran/lib/gcc/i686-pc-cygwin/4.4.0/libgfortran.a ./configure --with-matlab=/cygdrive/c/Progra~1/MATLAB
(note that you shoud use "Progra~1" instead of "Program Files" when giving the path to MATLAB directory, since spaces in pathnames are not supported)
Finally, compile the testing program by typing:
make
This should have created a program called tester.