I tried to execute the built-in example1.mod file and I encountered the following error:
dynare example1.mod
Starting Dynare (version 5.0).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Found 6 equation(s).
Evaluating expressions…done
Computing static model derivatives (order 1).
Computing dynamic model derivatives (order 2).
Processing outputs …
done
Preprocessing completed.
Unable to resolve the name example1.driver.
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);
FYI, I browsed similar posts in this forum and followed the advice (e.g. reinstallation). But unfortunately it didn’t work. I don’t enough experience in dealing with such type of errors. I’d highly appreciate if if someone helps me in this regard.
I am using Matlab R2021b. The output is “Dynare\Work\example1.mod”.
FYI, with dynare 4.6.4 I could successfully execute the example1.mod and some other mod files. Look forward to your reply. Thanks!
I think its the correct file because I have copied this file from the folder generated after dynare installation.
Yes Dynare\Work\+example1 -folder is created.
Ok, then that seems to be part of the problem. It’s not supposed to be empty. When you encounter the above error message, what is the current folder of Matlab?
I have tried command example1.driver, the output is normal, But when I try to run example3.mod, the same situation occurr.
Unable to resolve the name example1.driver.
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);
I want to find the problem and solve it, could you help me?
oh, sorry. the error is:
Unable to resolve the name example1.driver.
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);
the same error with example1.mod
Hi @jpfeifer I have also had a similar problem as the last time I ran my model was before the updates in matlab 2019 or recent versions of dynare.
When I run my mod file, kuw_ver.mod stored in user/matlab folder, all outputs (.m, static, dynamic, results etc) are stored in +kuw_ver folder (path: .user/matlab/+kuw_ver).
My problem arises in my estimation file when I run the command eval(fname) and I get the error “‘kuw_ver’ is not found in the current folder or on the MATLAB path”. I think the problem is:
the output results are saved in the new folder
the outputs in the new location are recorded without the original FILENAMES eg formerly “kuw_ver.m” now “driver.m”
My question: Please how do I restate my eval(fname) function to recognise the output in the new output folder or is there a way of adding path or renaming results so that I don’t have to rewrite most parts of my codes? Please can you help with this? thanks