MFE Toolbox Kevin Sheppard Installation Problem
Show older comments
Dear All,
I am having hard time in running MFE Toolbox for GARCH by Kevin Sheppard. Every time I launch my code I get an error message like that attached. It seems that there should be an installment problem. The SAME file, with the same dataset and code works perfectly on another PC of mine with MATLAB R2021a.
It looks like does not read or misinterpret some internal command.
How can I solve this problem ?
Thanks
Max Marzo
Answers (2)
Steven Lord
on 12 Jul 2022
0 votes
From the error message it looks like that function is using a syntax for fmincon that has been discouraged for several years (and has no longer been documented for about that long.) That older syntax has a consequence that the additional parameters are passed to all the functions (objective, nonlinear constraint, and any functions in the options structure) you pass into fmincon even if those functions don't need or want them.
You could ask the author to update the syntax with which they call fmincon to use the recommended approaches for passing additional parameters.
Depending on what you're trying to do with that toolbox, another possibility is to use Econometrics Toolbox (assuming it has all the capabilities that you're using from this MFE toolbox.)
You haven't shown a whole lot of your code, but perhaps you're specifying the wrong parameter values for one of the options that you pass into fmincon.
Massimiliano Marzo
on 12 Jul 2022
0 votes
Categories
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!