bamba wrote: the steady state values computed are not the same ones i calculated
You should check your equations in the _steadystate.m file (it may be caused by a little typo). An easy way to check for this is to evaluate the static version of your model at what you think to be the steady state. You may proceed as follows :
(1) After the
model block write an
initval block using exactly the same formulas as in your _steadystate.m file.
(2) After the
initval block use the following command
resid(1);
(3) that's all you need.
Run the mod file. The command
resid evaluates the static model at the point defined in the block
initval, by printing on the matlab prompt a $(N+1) \times 1$ vector (where N is the number of equations in your model). If the point defined in the
initval block is a fixed point the displayed vector should be null everywhere except in the first position. If the (i+1)-th scalar is non-zero you have a problem in equation i of your model. The problem may be a typo in the model declaration, a typo in the equations defining the steady state or an error in your algebra
Best, St