tholden / dynareOBC

A toolkit for implementing occasionally binding constraints in Dynare.
GNU General Public License v3.0
48 stars 35 forks source link

Error using InitialChecks (line 573) #33

Closed mk1564 closed 5 months ago

mk1564 commented 2 years ago

Hi,

Can I get some help on the error below?

Error using InitialChecks (line 573)
This should never happen. Double-check your DynareOBC install, or try a
different solver.
Internal error message: Unknown problem in solver (Turn on 'debug' in
sdpsettings) (Reference to non-existent field 'H'.)
Error in ModelSolution (line 178)
            dynareOBC = InitialChecks( dynareOBC );
Error in dynareOBCCore (line 544)
        [ Info, M_, options_, oo_ , dynareOBC ] = ModelSolution( (
        ~dynareOBC.Estimation ) && ( size( FlipsTried, 1 ) == 1 ), M_, options_,
        oo_, dynareOBC );
Error in dynareOBCSetup (line 297)
            dynareOBC_ = dynareOBCCore( InputFileName, basevarargin, dynareOBC_,
            @() EnforceRequirementsAndGeneratePath( Update, OriginalPath,
            CurrentFolder, dynareOBCPath, InputFileName, varargin{:} ) );
Error in dynareOBC (line 711)
        dynareOBCSetup( OriginalPath, CurrentFolder, dynareOBCPath,
        InputFileName, varargin{:} ); 

I did downloaded the most recent version and I am using dynare 4.5.7. I did the testsolvers and it says

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|                   Test|   Solution|                                                                                      Solver message|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|   Core functionalities|        N/A|                                                                        Successfully solved (YALMIP)|
|                     LP|        N/A|   Unknown problem in solver (Turn on 'debug' in sdpsettings) (Reference to non-existent field 'H'.)|
|                     LP|        N/A|   Unknown problem in solver (Turn on 'debug' in sdpsettings) (Reference to non-existent field 'H'.)|
|                     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|   Unknown problem in solver (Turn on 'debug' in sdpsettings) (Reference to non-existent field 'H'.)|
|          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|
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Checking OPTI Toolbox Installation:
Checking Paths...                Ok
Checking    LP Solver Results... Ok
Checking  MILP Solver Results... Ok
Checking    QP Solver Results... Ok
Checking   NLS Solver Results... Ok
Checking   NLP Solver Results... Ok

Toolbox Checked Out Ok! - Enjoy

It works fine when I run RunAllExamples.m, but get the same error when I try to run examples individually.

tholden commented 2 years ago

Installing Gurobi or similar will fix this.

Unclear what the source of this particular issue is.