3#include <alpaqa/ipopt-adapter-export.h>
26 Ipopt::SolverReturn status = Ipopt::SolverReturn::UNASSIGNED;
28 real_t solution_f = NaN<config_t>, infeasibility = NaN<config_t>,
29 nlp_error = NaN<config_t>;
33 return (-solution_z_L.array() >= solution_z_U.array())
34 .select(solution_z_L, solution_z_U);
71 void finalize_solution(Ipopt::SolverReturn status,
Index n,
const Number *x,
75 Ipopt::IpoptCalculatedQuantities *
ip_cq)
override;
86 cvt_sparsity_hess_L = orig_sparsity_hess_L;
Based on https://coin-or.github.io/Ipopt/INTERFACES.html.
vec initial_guess_bounds_multipliers
vec initial_guess_multipliers
IpoptAdapter(Problem &&)=delete
Sparsity get_jac_g_sparsity() const
[Optional] Function that returns (a view of) the sparsity pattern of the Jacobian of the constraints.
Sparsity get_hess_L_sparsity() const
[Optional] Function that returns (a view of) the sparsity pattern of the Hessian of the Lagrangian.
#define USING_ALPAQA_CONFIG(Conf)
Converts one matrix storage format to another.
typename Conf::real_t real_t
typename Conf::length_t length_t
Double-precision double configuration.
vec combine_bounds_multipliers() const
Sparse coordinate list structure (COO).