#include <nlp_solver_ipopt_wrapper.h>
Public Member Functions | |
IpoptWrapper (SolverIpopt *solver) | |
void | precompute1stOrderDerivatives () |
void | setOptimizationProblem (OptimizationProblemInterface &problem) |
virtual | ~IpoptWrapper () |
Overloaded from TNLP | |
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 |
Solution Methods | |
void | finalize_solution (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 IpoptData *ip_data, IpoptCalculatedQuantities *ip_cq) override |
Private Types | |
using | Index = Ipopt::Index |
using | IpoptCalculatedQuantities = Ipopt::IpoptCalculatedQuantities |
using | IpoptData = Ipopt::IpoptData |
using | Number = Ipopt::Number |
using | SolverReturn = Ipopt::SolverReturn |
Private Attributes | |
OptimizationProblemInterface * | _problem = nullptr |
SolverIpopt * | _solver = nullptr |
Definition at line 41 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 44 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 48 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 47 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 45 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 46 of file nlp_solver_ipopt_wrapper.h.
|
explicit |
default constructor
|
virtual |
default destructor
|
override |
Method to return the objective value
|
override |
Method to return the constraint residuals
|
override |
Method to return the gradient of the objective
|
override |
Method to return: 1) The structure of the hessian of the lagrangian (if "values" is NULL) 2) The values of the hessian of the lagrangian (if "values" is not NULL)
|
override |
Method to return: 1) The structure of the jacobian (if "values" is NULL) 2) The values of the jacobian (if "values" is not NULL)
|
override |
This method is called when the algorithm is complete so the TNLP can store/write the solution
|
override |
Method to return the bounds for my problem
|
override |
Method to return some info about the nlp
|
override |
Method to return the starting point for the algorithm
void corbo::IpoptWrapper::precompute1stOrderDerivatives | ( | ) |
|
inline |
Definition at line 57 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 107 of file nlp_solver_ipopt_wrapper.h.
|
private |
Definition at line 108 of file nlp_solver_ipopt_wrapper.h.