#include <interop/ipopt/include/alpaqa/ipopt/ipopt-adapter.hpp>
Based on https://coin-or.github.io/Ipopt/INTERFACES.html.
Definition at line 11 of file ipopt-adapter.hpp.
Functions required by Ipopt | |
bool | get_nlp_info (Index &n, Index &m, Index &nnz_jac_g, Index &nnz_h_lag, IndexStyleEnum &index_style) override |
bool | get_bounds_info (Index n, Number *x_l, Number *x_u, Index m, Number *g_l, Number *g_u) override |
bool | get_starting_point (Index n, bool init_x, Number *x, bool init_z, Number *z_L, Number *z_U, Index m, bool init_lambda, Number *lambda) override |
bool | eval_f (Index n, const Number *x, bool new_x, Number &obj_value) override |
bool | eval_grad_f (Index n, const Number *x, bool new_x, Number *grad_f) override |
bool | eval_g (Index n, const Number *x, bool new_x, Index m, Number *g) override |
bool | eval_jac_g (Index n, const Number *x, bool new_x, Index m, Index nele_jac, Index *iRow, Index *jCol, Number *values) override |
bool | eval_h (Index n, const Number *x, bool new_x, Number obj_factor, Index m, const Number *lambda, bool new_lambda, Index nele_hess, Index *iRow, Index *jCol, Number *values) override |
void | finalize_solution (Ipopt::SolverReturn status, Index n, const Number *x, const Number *z_L, const Number *z_U, Index m, const Number *g, const Number *lambda, Number obj_value, const Ipopt::IpoptData *ip_data, Ipopt::IpoptCalculatedQuantities *ip_cq) override |
Classes | |
struct | Results |
struct | Sparsity |
Public Types | |
using | Problem = TypeErasedProblem< config_t > |
using | Index = Ipopt::Index |
using | Number = Ipopt::Number |
Public Member Functions | |
IpoptAdapter (const Problem &problem) | |
IpoptAdapter (Problem &&)=delete | |
Public Attributes | |
const Problem & | problem |
vec | initial_guess |
vec | initial_guess_bounds_multipliers_l |
vec | initial_guess_bounds_multipliers_u |
vec | initial_guess_multipliers |
struct alpaqa::IpoptAdapter::Results | results |
Static Private Member Functions | |
static void | set_sparsity (Index n, Index m, Index nele, Index *iRow, Index *jCol, const Sparsity &sp) |
Private Attributes | |
struct alpaqa::IpoptAdapter::Sparsity | sparsity_J |
struct alpaqa::IpoptAdapter::Sparsity | sparsity_H |
struct alpaqa::IpoptAdapter::Results |
struct alpaqa::IpoptAdapter::Sparsity |
using Problem = TypeErasedProblem<config_t> |
Definition at line 14 of file ipopt-adapter.hpp.
using Index = Ipopt::Index |
Definition at line 20 of file ipopt-adapter.hpp.
using Number = Ipopt::Number |
Definition at line 21 of file ipopt-adapter.hpp.
IpoptAdapter | ( | const Problem & | problem | ) |
|
delete |
|
override |
Definition at line 51 of file ipopt-adapter.cpp.
|
override |
Definition at line 138 of file ipopt-adapter.cpp.
const Problem& problem |
Definition at line 15 of file ipopt-adapter.hpp.
vec initial_guess |
Definition at line 16 of file ipopt-adapter.hpp.
vec initial_guess_bounds_multipliers_l |
Definition at line 17 of file ipopt-adapter.hpp.
vec initial_guess_bounds_multipliers_u |
Definition at line 18 of file ipopt-adapter.hpp.
vec initial_guess_multipliers |
Definition at line 19 of file ipopt-adapter.hpp.
struct alpaqa::IpoptAdapter::Results results |
|
private |
|
private |