MeshKit  1.0
IARoundingFarNlp Class Reference

#include <IARoundingFarNlp.hpp>

Inheritance diagram for IARoundingFarNlp:

List of all members.

Public Member Functions

 IARoundingFarNlp (const IAData *data_ptr, const IPData *ip_data_ptr, IASolution *solution_ptr)
virtual ~IARoundingFarNlp ()
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) const
double get_f_xl (int i) const
double get_f_xh (int i) const
 IARoundingFarNlp ()
 IARoundingFarNlp (const IARoundingFarNlp &)
IARoundingFarNlpoperator= (const IARoundingFarNlp &)

Private Attributes

const IAData * data
const IPData * ipData
IAWeights h0
IAWeights hp
IAWeights hm
IASolution * solution
IANlp baseNlp
const bool debugging
const bool verbose

Detailed Description

Definition at line 20 of file IARoundingFarNlp.hpp.


Constructor & Destructor Documentation

IARoundingFarNlp ( const IAData *  data_ptr,
const IPData *  ip_data_ptr,
IASolution *  solution_ptr 
)

default constructor

Definition at line 96 of file IARoundingFarNlp.cpp.

~IARoundingFarNlp ( ) [virtual]

default destructor

Definition at line 88 of file IARoundingFarNlp.cpp.

IARoundingFarNlp ( ) [private]
IARoundingFarNlp ( const IARoundingFarNlp ) [private]

Member Function Documentation

bool eval_f ( Index  n,
const Number *  x,
bool  new_x,
Number &  obj_value 
) [virtual]

Method to return the objective value

Definition at line 315 of file IARoundingFarNlp.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 426 of file IARoundingFarNlp.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 394 of file IARoundingFarNlp.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 440 of file IARoundingFarNlp.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 432 of file IARoundingFarNlp.cpp.

double f_x_value ( double  I_i,
double  x_i 
) const [private]

Definition at line 79 of file IARoundingFarNlp.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 465 of file IARoundingFarNlp.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 241 of file IARoundingFarNlp.cpp.

double get_f_xh ( int  i) const [inline, private]

Definition at line 308 of file IARoundingFarNlp.cpp.

double get_f_xl ( int  i) const [inline, private]

Definition at line 302 of file IARoundingFarNlp.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 231 of file IARoundingFarNlp.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 281 of file IARoundingFarNlp.cpp.

IARoundingFarNlp& operator= ( const IARoundingFarNlp ) [private]

Member Data Documentation

IANlp baseNlp [private]

Definition at line 110 of file IARoundingFarNlp.hpp.

const IAData* data [private]

Definition at line 98 of file IARoundingFarNlp.hpp.

const bool debugging [private]

Definition at line 112 of file IARoundingFarNlp.hpp.

IAWeights h0 [private]

Definition at line 101 of file IARoundingFarNlp.hpp.

IAWeights hm [private]

Definition at line 103 of file IARoundingFarNlp.hpp.

IAWeights hp [private]

Definition at line 102 of file IARoundingFarNlp.hpp.

const IPData* ipData [private]

Definition at line 99 of file IARoundingFarNlp.hpp.

IASolution* solution [private]

Definition at line 106 of file IARoundingFarNlp.hpp.

const bool verbose [private]

Definition at line 113 of file IARoundingFarNlp.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines