Page 1 of 1

Argument type(s) for function

PostPosted: Tue Apr 10, 2007 6:49 am
by koji
Hello,

I am solving macro mdoel and got the following error message.

>>>>>>>>>>>>>>>>>
--error 246
function not defined for given argument type(s)
Check arguments or define function %s_strcat for overloading
at line 10 of function mputl called by :
line 3 of function dyn_disp called by :
line 194 of function simk called by :
line 33 of function simul called by :
simul(0,0,0,0,0);
line 155 of exec file called by :
line 20 of function dynare called by :
dynare GEM52.mod
>>>>>>>>>>>>>>>>>

Are there problems in some arguments of functions, or in my model itself?

PostPosted: Fri Apr 13, 2007 7:24 am
by MichelJuillard
Dear Koji,

which version of Scilab are you using?

Best

Michel

PostPosted: Mon Apr 16, 2007 2:24 am
by koji
Dear Michel,

I am using Scilab-4.0.

PostPosted: Sat Apr 21, 2007 5:02 pm
by MichelJuillard
We noticed that you are using expression like
C=i(+1)...

in the INITVAL block. It isn't permitted to use lead or lagged value of a variable in the INITVAL block.

Did you succeed in running Dynare under Scilab v. 4 with a simpler model?

Best

Michel

PostPosted: Fri May 11, 2007 3:45 pm
by koji
Thank you for your suggestion (and sorry for my late response).
I dropped (+1) from initval block.
And I also found some mistakes in my model. Now it works.