dynare/mex/sources/k_order_perturbation
sebastien 295f998503 Dynare++ and k_order_perturbation DLL:
* support Microsoft Visual C++ 2008 compiler (necessary for 64-bit 
platforms)
* use standard C++ headers for C Standard Library support


git-svn-id: https://www.dynare.org/svn/dynare/trunk@3121 ac1d8469-bf42-47a9-8791-bf33cf982152
2009-11-03 14:16:18 +00:00
..
tests Renamed kordepert to k_order_perturbation 2009-10-23 09:07:47 +00:00
Readme.txt Renamed kordepert to k_order_perturbation 2009-10-23 09:07:47 +00:00
dynamic_dll.cpp Dynare++ and k_order_perturbation DLL: 2009-11-03 14:16:18 +00:00
dynamic_dll.h Dynare++ and k_order_perturbation DLL: 2009-11-03 14:16:18 +00:00
k_ord_dynare.cpp Dynare++ and k_order_perturbation DLL: 2009-11-03 14:16:18 +00:00
k_ord_dynare.h Renamed kordepert to k_order_perturbation 2009-10-23 09:07:47 +00:00
k_order_perturbation.cpp Dynare++ and k_order_perturbation DLL: 2009-11-03 14:16:18 +00:00

Readme.txt

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

k_order_perturbation project status

NOTE: The dll  (mexw32 or so) is called from new Matlab Dynare function dr1_k_order
derived from dr1, after set_state_space as:

[ysteady, ghx_u]=k_ord_dynare_perturbation(dr,task,M_,options_, oo_, ['.' mexext])

where last term is optional but it will default to .dll on windows and .so on linux.

dr1_k_order is called by amended resol.m:

elseif(options_.use_k_order==1)&& (check_flag == 0)
    [dr,info,M_,options_,oo_] = dr1_k_order(dr,check_flag,M_,options_,oo_);
else

and requirese options to be set

options_.use_k_order=1;

==================
Tests:

first_order.m is matlab emulation of Dynare++ c++ first_order.cpp for testing pruposes


==================
ToDO:
==================
1) amend <model>.m to use Dynamic_mexopts.bat

   mex -f Dynamic_mexopts.bat -O fs2000k_no_both_UR_dynamic.c

or amend preprocessor to make mex to export Dynamic() function as well as mexFunction() as the Dynamic_mexopts.bat does, e.g.:

set LINKFLAGS=/dll /export:Dynamic /export:%ENTRYPOINT% /MAP ....

2) make k_order_perturbation handle models  which have the "both" variables (i.e. variables that appear both as lag and as lead)