I have a model where an essential part of the steady state is solved numerically (rather than analytically) through Matlab’s fsolve command. fsolve is called from the steady state file.

Now, I wish to include a steady state term into the model block of my .mod-file. Normally, this can be accomplished through pound operators (i.e., #), but pound operators do not accept Matlab functions such as fsolve. Consequently, I am not able to derive the steady state with pound operations in the beginning of the model block.

Is there a way to include steady state terms into the model block of the .mod-file when the steady state is solved numerically through Matlab functions?

Yours sincerely,

Marcus Mølbak Ingholt

Ph.D. Candidate

University of Copenhagen