I need your help please.
I’ve been trying to get dynareobc to work for a while now, but even after reinstalling Matlab and dynare I get the following error message when running the command: dynareOBC TestSolvers:
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Test| Solution| Solver message|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
| Core functionalities| N/A| Successfully solved (YALMIP)|
| LP| Correct| Successfully solved (INTLINPROG)|
| LP| Correct| Successfully solved (INTLINPROG)|
| QP| Correct| Successfully solved (QUADPROG)|
| QP| Correct| Successfully solved (QUADPROG)|
| SOCP| Correct| Successfully solved (FMINCON)|
| SOCP| Correct| Successfully solved (FMINCON)|
| SOCP| Correct| Successfully solved (FMINCON)|
| SDP| N/A| No suitable solver|
| SDP| N/A| No suitable solver|
| SDP| N/A| No suitable solver|
| SDP| N/A| No suitable solver|
| MAXDET| N/A| No suitable solver|
| MAXDET| N/A| No suitable solver|
| Infeasible LP| N/A| Infeasible problem (INTLINPROG)|
| Infeasible QP| N/A| Infeasible problem (QUADPROG)|
| Infeasible SDP| N/A| No suitable solver|
| Moment relaxation| N/A| No suitable solver|
| Sum-of-squares| N/A| No suitable solver|
| Bilinear SDP| N/A| No suitable solver|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Warning: Unrecognized function or variable 'opti_Install_Test'.
> In dynareOBCSetup (line 189)
In dynareOBC (line 711)
opti_Install_Test.m should be in the Extern\OPTI\Utilities\Install directory of DynareOBC.
If you do not have that directory, there is something wrong with your DynareOBC install.
I suggest deleting what you have, redownloading the latest release, extracting to a folder with a short simple path (e.g. c:\dynareOBC) not some network folder, and making sure your copy of MATLAB can access the internet.
It’s always worthwhile installing Gurobi, as documented in the ReadMe and Getting Started guide.
I do not understand the error you are getting. Debugging it would be helpful to me. (E.g. place a break point at line 185 of dynareOBCSetup.m and step through.)
I expect it is a path issue. It would be sensible to reset your MATLAB path, then add back Dynare’s Matlab directory (do not click add with sub-folders!) and DynareOBC’s main directory (again, do not click add with sub-folders!).
Good you installed Gurobi! So what happens when you step through the code from there? Is the relevant Opti directory in the path at that point in time?
No obvious red flags here! Other than your use of Dynare 4.6. I recommend sticking with Dynare 4.5 for DynareOBC at present. Though I really doubt that explains this issue.
In any case, given your path looks fine, I expect DynareOBC will work fine. Just ignore the Opti toolbox issue. It’s irrelevant now you have installed Gurobi in any case.