From roberto.willoughby at posgrad.ufsc.br Mon Mar 11 08:50:07 2024 From: roberto.willoughby at posgrad.ufsc.br (roberto.willoughby at posgrad.ufsc.br) Date: Mon, 11 Mar 2024 09:50:07 -0300 Subject: [Ipopt] Error using Casadi + IPOPT + Pardiso Message-ID: <0e503974cb2cd8e28a5b1df20f9c5a84@posgrad.ufsc.br> Hello Everyone. I am having some trouble trying to use Casadi + IPOPT + Pardiso, didn't find anything similar on the mailing list. I am solving an optimization problem using Casadi with my Python code, I was originally using mumps, so it works well when I define: opts = {'ipopt.print_level': 0, 'print_time': 0, 'ipopt.linear_solver': 'mumps'} When I change to: opts = {'ipopt.print_level': 0, 'print_time': 0, 'ipopt.linear_solver': 'pardiso'} I get this error message: .../casadi/core/optistack_internal.cpp:997: Assertion "return_success(accept_limit)" failed: Solver failed. You may use opti.debug.value to investigate the latest values of variables. return_status is 'Invalid_Option' If I use any non-existent name as 'roberto' for the linear solver I get a different error, so I guess this is something related to the configuration. I am using VSCode in Ubuntu, installed Atlas/lapack and Pardiso, then ./configure --with-pardiso and the make, everything went well. Any idea of what could be missing? Thanks in advance, Roberto Willoughby. -------------- next part -------------- An HTML attachment was scrubbed... URL: From svigerske at gams.com Mon Mar 11 10:55:56 2024 From: svigerske at gams.com (Stefan Vigerske) Date: Mon, 11 Mar 2024 15:55:56 +0100 Subject: [Ipopt] Error using Casadi + IPOPT + Pardiso In-Reply-To: <0e503974cb2cd8e28a5b1df20f9c5a84@posgrad.ufsc.br> References: <0e503974cb2cd8e28a5b1df20f9c5a84@posgrad.ufsc.br> Message-ID: Hi, if you do not set the Ipopt print_level to 0 you may see more information on why the option was found invalid. But the --with-pardiso argument of configure should take the linker flags for Pardiso (probably just the path to the library) as value. Just saying --with-pardiso is probably not doing anything. Stefan On 11/03/2024 13:50, roberto.willoughby at posgrad.ufsc.br wrote: > Hello Everyone. > > I am having some trouble trying to use Casadi + IPOPT + Pardiso, didn't > find anything similar on the mailing list. > > I am solving an optimization problem using Casadi with my Python code, I > was originally using mumps, so it works well when I define: > > opts = {'ipopt.print_level': 0, 'print_time': 0, 'ipopt.linear_solver': > 'mumps'} > > When I change to: > > opts = {'ipopt.print_level': 0, 'print_time': 0, 'ipopt.linear_solver': > 'pardiso'} > > I get this error message: > > .../casadi/core/optistack_internal.cpp:997: Assertion > "return_success(accept_limit)" failed: > Solver failed. You may use opti.debug.value to investigate the latest > values of variables. return_status is 'Invalid_Option' > > If I use any non-existent name as 'roberto' for the linear solver I get > a different error, so I guess this is something related to the > configuration. > > I am using VSCode in Ubuntu, installed Atlas/lapack and Pardiso, then > ./configure --with-pardiso and the make, everything went well. > > Any idea of what could be missing? > > Thanks in advance, > > Roberto Willoughby. > > > _______________________________________________ > Ipopt mailing list > Ipopt at list.coin-or.org > https://list.coin-or.org/mailman/listinfo/ipopt