#184: Auxiliary variables for leads. --------------------------+------------------------------------------------- Reporter: stepan | Owner: houtanb Type: enhancement | Status: new Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- The last loop in add_auxiliary_variables is highly inefficient. The the residuals of the static model are evaluated (many times) to compute the the steady state levels of the auxiliary variables. But in the preprocessing stage, the expressions of the auxiliary variables (in terms of the endogenous variables) are known. The preprocessor should write a routine defining the auxiliary variables as a function of the endogenous variables. Depending on the current options, this routine may be a matlab function, a mex or bytecode. With such a function we won't need to infer the steady state of the auxiliaries from the residuals of the static model...
#184: Auxiliary variables for leads. --------------------------+------------------------------------------------- Reporter: stepan | Owner: houtanb Type: enhancement | Status: new Priority: major | Milestone: 4.3 Component: Preprocessor | Version: Keywords: | --------------------------+-------------------------------------------------
Comment(by michel):
I have added the Matlab version of this routine: <fname>_set_auxiliary_variables.m See StaticModel.cc near line 1600
#184: Auxiliary variables for leads. --------------------------+------------------------------------------------- Reporter: stepan | Owner: houtanb Type: enhancement | Status: new Priority: major | Milestone: 5.0 Component: Preprocessor | Version: Keywords: | --------------------------+------------------------------------------------- Changes (by houtanb):
* milestone: 4.3 => 5.0