Closed chenglong0791 closed 5 months ago
commit f5e85ee8eab5ddfb3e2575d4f495f6d73283111c resolves this issue
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.
Sfirstorder ... FAILURE (0.03161 s) batch_data_solution message = casadiMEX: Sparsity::row: Index 0 out of range [0,0) identifier = SWIG:RuntimeError stack =
7x1 struct array containing the fields:
file
name
line
column
file = /home/jbraw/src/casadi/casadi-3.6.5-linux64-octave7.3.0/+casadi/GenericMatrixCommon.m name = det line = 485 column = 29 file = /home/jbraw/src/paresto/paresto.m name = modeling line = 196 column = 26 file = /home/jbraw/src/paresto/paresto.m name = paresto line = 149 column = 7 file = /home/jbraw/src/paresto/examples/green_book/batch_data_solution.m name = batch_data_solution line = 71 column = 4
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: @.***>
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);