MeshKit
1.0
|
#include <IANlp.hpp>
Public Member Functions | |
IANlp (const IAData *data_ptr, IASolution *solution_ptr, const bool set_silent=true) | |
virtual | ~IANlp () |
int | get_neleJac () const |
double | eval_even_sum (const int i, const Number *x) const |
double | eval_equal_sum (const int i, const Number *x) const |
Overloaded from TNLP | |
virtual bool | get_nlp_info (Index &n, Index &m, Index &nnz_jac_g, Index &nnz_h_lag, IndexStyleEnum &index_style) |
virtual bool | get_bounds_info (Index n, Number *x_l, Number *x_u, Index m, Number *g_l, Number *g_u) |
virtual bool | get_starting_point (Index n, bool init_x, Number *x_init, bool init_z, Number *z_L, Number *z_U, Index m, bool init_lambda, Number *lambda) |
virtual bool | eval_f (Index n, const Number *x, bool new_x, Number &obj_value) |
virtual bool | eval_grad_f (Index n, const Number *x, bool new_x, Number *grad_f) |
virtual bool | eval_g (Index n, const Number *x, bool new_x, Index m, Number *g) |
virtual bool | eval_jac_g (Index n, const Number *x, bool new_x, Index m, Index nele_jac, Index *iRow, Index *jCol, Number *values) |
virtual 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) |
Solution Methods | |
virtual 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) |
Static Public Member Functions | |
static Number | eval_R_i (const Number &I_i, const Number &x_i) |
Private Member Functions | |
IANlp () | |
IANlp (const IANlp &) | |
IANlp & | operator= (const IANlp &) |
Static Private Member Functions | |
static Number | eval_r_i (const Number &I_i, const Number &x_i) |
static Number | eval_grad_r_i (const Number &I_i, const Number &x_i) |
static Number | eval_hess_r_i (const Number &I_i, const Number &x_i) |
static Number | eval_s_i (const Number &I_i, const Number &x_i) |
static Number | eval_grad_s_i (const Number &I_i, const Number &x_i) |
static Number | eval_hess_s_i (const Number &I_i, const Number &x_i) |
static Number | eval_grad_R_i (const Number &I_i, const Number &x_i) |
static Number | eval_hess_R_i (const Number &I_i, const Number &x_i) |
static Number | eval_S_i (const Number &I_i, const Number &x_i) |
static Number | eval_grad_S_i (const Number &I_i, const Number &x_i) |
static Number | eval_hess_S_i (const Number &I_i, const Number &x_i) |
Private Attributes | |
const IAData * | data |
IASolution * | solution |
int | neleJac |
const bool | silent |
const bool | debugging |
const bool | verbose |
Static Private Attributes | |
static const int | p_norm = 3 |
IANlp | ( | const IAData * | data_ptr, |
IASolution * | solution_ptr, | ||
const bool | set_silent = true |
||
) |
IANlp | ( | ) | [private] |
double eval_equal_sum | ( | const int | i, |
const Number * | x | ||
) | const |
double eval_even_sum | ( | const int | i, |
const Number * | x | ||
) | const |
bool eval_f | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Number & | obj_value | ||
) | [virtual] |
bool eval_g | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Index | m, | ||
Number * | g | ||
) | [virtual] |
bool eval_grad_f | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Number * | grad_f | ||
) | [virtual] |
Number eval_grad_r_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_grad_R_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_grad_s_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_grad_S_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
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 | ||
) | [virtual] |
Number eval_hess_r_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_hess_R_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_hess_s_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_hess_S_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
bool eval_jac_g | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Index | m, | ||
Index | nele_jac, | ||
Index * | iRow, | ||
Index * | jCol, | ||
Number * | values | ||
) | [virtual] |
Number eval_r_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_R_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static] |
Number eval_s_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
Number eval_S_i | ( | const Number & | I_i, |
const Number & | x_i | ||
) | [inline, static, private] |
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 | ||
) | [virtual] |
bool get_bounds_info | ( | Index | n, |
Number * | x_l, | ||
Number * | x_u, | ||
Index | m, | ||
Number * | g_l, | ||
Number * | g_u | ||
) | [virtual] |
int get_neleJac | ( | ) | const [inline] |
bool get_nlp_info | ( | Index & | n, |
Index & | m, | ||
Index & | nnz_jac_g, | ||
Index & | nnz_h_lag, | ||
IndexStyleEnum & | index_style | ||
) | [virtual] |
bool get_starting_point | ( | Index | n, |
bool | init_x, | ||
Number * | x_init, | ||
bool | init_z, | ||
Number * | z_L, | ||
Number * | z_U, | ||
Index | m, | ||
bool | init_lambda, | ||
Number * | lambda | ||
) | [virtual] |
IASolution* solution [private] |