thanks for jpfeifer's help and after adjust parameters and some linear equations,the machine can run the dynare code.however i am puzzled that the code works only after some linear equations changing their time lag,e.x changing the original equation"phai*(Q(-1)+ku-nu)-S(-1) = 0;" to "phai*(Q+ku(+1)-nu(+1))-S = 0;",i think the two equations should be the same but the fact is only the second one can make dyanre code work. could somebody tell me the reason for it?
the original(BGGNPC3) and adjusted(BGGNPC4) mod files are as follows.