Hello everyone!

I need to use extended path command to simulate a DSGE model for my thesis. The code can be run well using stoch_simul in dynare 4.4.3, but now my director needs me to use extended path to run the same codes and same deterministic model, as preparation for next step. However I got the following message. Can someone help me how to solve the probelms?

Error using chol

Matrix must be positive definite.

Error in setup_stochastic_perfect_foresight_model_solver (line 23)

pfm.Omega = chol(pfm.Sigma,‘upper’); % Sigma = Omega’*Omega

Error in extended_path (line 39)

pfm = setup_stochastic_perfect_foresight_model_solver(M_,options_,oo_,‘Tensor-Gaussian-Quadrature’);

Error in BKKexp (line 1253)

extended_path([], 100);

Error in dynare (line 180)

evalin(‘base’,fname) ;

Error in runBKK(lime 28)

dynare BKKexp nowarn

Any idea is appreciated so much and thanks in advance!