MeshKit
1.0
|
#include <IARoundingNlp.hpp>
Public Member Functions | |
IARoundingNlp (const IAData *data_ptr, const IPData *ip_data_ptr, IASolution *solution_ptr, const bool set_silent=true) | |
virtual | ~IARoundingNlp () |
bool | randomize_weights_of_non_int () |
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) |
Private Member Functions | |
double | f_x_value (double I_i, double x_i) |
IARoundingNlp () | |
IARoundingNlp (const IARoundingNlp &) | |
IARoundingNlp & | operator= (const IARoundingNlp &) |
Private Attributes | |
const IAData * | data |
const IPData * | ipData |
IASolution * | solution |
IANlp | baseNlp |
IAWeights | weights |
const bool | silent |
const bool | debugging |
const bool | verbose |
Definition at line 24 of file IARoundingNlp.hpp.
IARoundingNlp | ( | const IAData * | data_ptr, |
const IPData * | ip_data_ptr, | ||
IASolution * | solution_ptr, | ||
const bool | set_silent = true |
||
) |
default constructor
Definition at line 60 of file IARoundingNlp.cpp.
~IARoundingNlp | ( | ) | [virtual] |
default destructor
Definition at line 111 of file IARoundingNlp.cpp.
IARoundingNlp | ( | ) | [private] |
IARoundingNlp | ( | const IARoundingNlp & | ) | [private] |
bool eval_f | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Number & | obj_value | ||
) | [virtual] |
Method to return the objective value
Definition at line 166 of file IARoundingNlp.cpp.
bool eval_g | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Index | m, | ||
Number * | g | ||
) | [virtual] |
Method to return the constraint residuals
Definition at line 198 of file IARoundingNlp.cpp.
bool eval_grad_f | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Number * | grad_f | ||
) | [virtual] |
Method to return the gradient of the objective
Definition at line 183 of file IARoundingNlp.cpp.
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] |
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)
Definition at line 212 of file IARoundingNlp.cpp.
bool eval_jac_g | ( | Index | n, |
const Number * | x, | ||
bool | new_x, | ||
Index | m, | ||
Index | nele_jac, | ||
Index * | iRow, | ||
Index * | jCol, | ||
Number * | values | ||
) | [virtual] |
Method to return: 1) The structure of the jacobian (if "values" is NULL) 2) The values of the jacobian (if "values" is not NULL)
Definition at line 204 of file IARoundingNlp.cpp.
double f_x_value | ( | double | I_i, |
double | x_i | ||
) | [private] |
Definition at line 47 of file IARoundingNlp.cpp.
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] |
This method is called when the algorithm is complete so the TNLP can store/write the solution
Definition at line 236 of file IARoundingNlp.cpp.
bool get_bounds_info | ( | Index | n, |
Number * | x_l, | ||
Number * | x_u, | ||
Index | m, | ||
Number * | g_l, | ||
Number * | g_u | ||
) | [virtual] |
Method to return the bounds for my problem
Definition at line 124 of file IARoundingNlp.cpp.
bool get_nlp_info | ( | Index & | n, |
Index & | m, | ||
Index & | nnz_jac_g, | ||
Index & | nnz_h_lag, | ||
IndexStyleEnum & | index_style | ||
) | [virtual] |
Method to return some info about the nlp
Definition at line 114 of file IARoundingNlp.cpp.
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] |
Method to return the starting point for the algorithm
Definition at line 144 of file IARoundingNlp.cpp.
IARoundingNlp& operator= | ( | const IARoundingNlp & | ) | [private] |
bool randomize_weights_of_non_int | ( | ) |
Definition at line 39 of file IARoundingNlp.cpp.
Definition at line 112 of file IARoundingNlp.hpp.
Definition at line 104 of file IARoundingNlp.hpp.
const bool debugging [private] |
Definition at line 121 of file IARoundingNlp.hpp.
Definition at line 105 of file IARoundingNlp.hpp.
const bool silent [private] |
Definition at line 120 of file IARoundingNlp.hpp.
IASolution* solution [private] |
Definition at line 108 of file IARoundingNlp.hpp.
const bool verbose [private] |
Definition at line 122 of file IARoundingNlp.hpp.
Definition at line 115 of file IARoundingNlp.hpp.