rawlings-group / paresto

A parameter estimation tool for MATLAB/Octave based on CasADi
1 stars 1 forks source link

'fwd2_solver' seems to have a problem. #8

Closed chenglong0791 closed 5 months ago

chenglong0791 commented 10 months ago

Error using casadi.Function/call (line 2467) Error in Function::call for 'fwd2_solver' [MXFunction] at .../casadi/core/function.cpp:1401: .../casadi/core/function_internal.hpp:1086: FunctionInternal::index_in: could not find entry "in_lam_g0". Available names are: [x0, p, lbx, ubx, lbg, ubg, lam_x0, lam_g0, out_x, out_f, out_g, out_lam_x, out_lam_g, out_lam_p, fwd_x0, fwd_p, fwd_lbx, fwd_ubx, fwd_lbg, fwd_ubg, fwd_lam_x0, fwd_lam_g0].

Error in casadi.Function/paren (line 5366) res = self.call(arg);

Error in casadi.Function/subsref (line 5351) [varargout{1:nargout}]= paren(self, s.subs{:});

Error in paresto/optimize (line 678) fsol = self.fsolver('in_x0', sol.x, 'in_lam_x0', sol.lam_x, 'in_lam_g0', sol.lam_g,...

Error in Sfirstorder (line 79) [est, y, p] = pe.optimize(y_ac, theta0, lb, ub);

titusswsquah commented 5 months ago

commit f5e85ee8eab5ddfb3e2575d4f495f6d73283111c resolves this issue

jbraw commented 5 months ago

This set of changes isn't quite right. Can you go to green_book/ and start octave and run the file runall.m. Most of them now fail with the same error.

Jim

Running book scripts.

On Tue, Apr 30, 2024 at 6:10 PM titusswsquah @.***> wrote:

commit f5e85ee https://github.com/rawlings-group/paresto/commit/f5e85ee8eab5ddfb3e2575d4f495f6d73283111c resolves this issue

— Reply to this email directly, view it on GitHub https://github.com/rawlings-group/paresto/issues/8#issuecomment-2087799921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRQ354A2Z5YRJM57URXV6TZAA6HFAVCNFSM6AAAAABBDANVFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBXG44TSOJSGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>