iCub-main
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
iCub::optimization::ff2LayNNTrainNLP Class Reference
+ Inheritance diagram for iCub::optimization::ff2LayNNTrainNLP:

Public Member Functions

 ff2LayNNTrainNLP (ff2LayNNTrain &_net, const Property &_bounds, const bool _randomInit, const deque< Vector > &_in, const deque< Vector > &_out, deque< Vector > &_pred)
 
virtual double get_error () const
 
bool get_nlp_info (Ipopt::Index &n, Ipopt::Index &m, Ipopt::Index &nnz_jac_g, Ipopt::Index &nnz_h_lag, IndexStyleEnum &index_style)
 
bool get_bounds_info (Ipopt::Index n, Ipopt::Number *x_l, Ipopt::Number *x_u, Ipopt::Index m, Ipopt::Number *g_l, Ipopt::Number *g_u)
 
bool get_starting_point (Ipopt::Index n, bool init_x, Ipopt::Number *x, bool init_z, Ipopt::Number *z_L, Ipopt::Number *z_U, Ipopt::Index m, bool init_lambda, Ipopt::Number *lambda)
 
bool eval_f (Ipopt::Index n, const Ipopt::Number *x, bool new_x, Ipopt::Number &obj_value)
 
bool eval_grad_f (Ipopt::Index n, const Ipopt::Number *x, bool new_x, Ipopt::Number *grad_f)
 
bool eval_g (Ipopt::Index n, const Ipopt::Number *x, bool new_x, Ipopt::Index m, Ipopt::Number *g)
 
bool eval_jac_g (Ipopt::Index n, const Ipopt::Number *x, bool new_x, Ipopt::Index m, Ipopt::Index nele_jac, Ipopt::Index *iRow, Ipopt::Index *jCol, Ipopt::Number *values)
 
bool eval_h (Ipopt::Index n, const Ipopt::Number *x, bool new_x, Ipopt::Number obj_factor, Ipopt::Index m, const Ipopt::Number *lambda, bool new_lambda, Ipopt::Index nele_hess, Ipopt::Index *iRow, Ipopt::Index *jCol, Ipopt::Number *values)
 
void finalize_solution (Ipopt::SolverReturn status, Ipopt::Index n, const Ipopt::Number *x, const Ipopt::Number *z_L, const Ipopt::Number *z_U, Ipopt::Index m, const Ipopt::Number *g, const Ipopt::Number *lambda, Ipopt::Number obj_value, const Ipopt::IpoptData *ip_data, Ipopt::IpoptCalculatedQuantities *ip_cq)
 

Protected Member Functions

bool getBounds (const string &tag, double &min, double &max)
 
void fillNet (const Ipopt::Number *x)
 
void fillVar (Ipopt::Number *x, const Ipopt::Number *x_l, const Ipopt::Number *x_u)
 

Protected Attributes

Property bounds
 
bool randomInit
 
ff2LayNNTrainnet
 
deque< Vector > & IW
 
deque< Vector > & LW
 
Vector & b1
 
Vector & b2
 
const deque< Vector > & in
 
const deque< Vector > & out
 
deque< Vector > & pred
 
double error
 

Detailed Description

Definition at line 46 of file neuralNetworks.cpp.

Constructor & Destructor Documentation

◆ ff2LayNNTrainNLP()

iCub::optimization::ff2LayNNTrainNLP::ff2LayNNTrainNLP ( ff2LayNNTrain _net,
const Property &  _bounds,
const bool  _randomInit,
const deque< Vector > &  _in,
const deque< Vector > &  _out,
deque< Vector > &  _pred 
)
inline

Definition at line 120 of file neuralNetworks.cpp.

Member Function Documentation

◆ eval_f()

bool iCub::optimization::ff2LayNNTrainNLP::eval_f ( Ipopt::Index  n,
const Ipopt::Number *  x,
bool  new_x,
Ipopt::Number &  obj_value 
)
inline

Definition at line 221 of file neuralNetworks.cpp.

◆ eval_g()

bool iCub::optimization::ff2LayNNTrainNLP::eval_g ( Ipopt::Index  n,
const Ipopt::Number *  x,
bool  new_x,
Ipopt::Index  m,
Ipopt::Number *  g 
)
inline

Definition at line 245 of file neuralNetworks.cpp.

◆ eval_grad_f()

bool iCub::optimization::ff2LayNNTrainNLP::eval_grad_f ( Ipopt::Index  n,
const Ipopt::Number *  x,
bool  new_x,
Ipopt::Number *  grad_f 
)
inline

Definition at line 238 of file neuralNetworks.cpp.

◆ eval_h()

bool iCub::optimization::ff2LayNNTrainNLP::eval_h ( Ipopt::Index  n,
const Ipopt::Number *  x,
bool  new_x,
Ipopt::Number  obj_factor,
Ipopt::Index  m,
const Ipopt::Number *  lambda,
bool  new_lambda,
Ipopt::Index  nele_hess,
Ipopt::Index *  iRow,
Ipopt::Index *  jCol,
Ipopt::Number *  values 
)
inline

Definition at line 260 of file neuralNetworks.cpp.

◆ eval_jac_g()

bool iCub::optimization::ff2LayNNTrainNLP::eval_jac_g ( Ipopt::Index  n,
const Ipopt::Number *  x,
bool  new_x,
Ipopt::Index  m,
Ipopt::Index  nele_jac,
Ipopt::Index *  iRow,
Ipopt::Index *  jCol,
Ipopt::Number *  values 
)
inline

Definition at line 252 of file neuralNetworks.cpp.

◆ fillNet()

void iCub::optimization::ff2LayNNTrainNLP::fillNet ( const Ipopt::Number *  x)
inlineprotected

Definition at line 81 of file neuralNetworks.cpp.

◆ fillVar()

void iCub::optimization::ff2LayNNTrainNLP::fillVar ( Ipopt::Number *  x,
const Ipopt::Number *  x_l,
const Ipopt::Number *  x_u 
)
inlineprotected

Definition at line 100 of file neuralNetworks.cpp.

◆ finalize_solution()

void iCub::optimization::ff2LayNNTrainNLP::finalize_solution ( Ipopt::SolverReturn  status,
Ipopt::Index  n,
const Ipopt::Number *  x,
const Ipopt::Number *  z_L,
const Ipopt::Number *  z_U,
Ipopt::Index  m,
const Ipopt::Number *  g,
const Ipopt::Number *  lambda,
Ipopt::Number  obj_value,
const Ipopt::IpoptData *  ip_data,
Ipopt::IpoptCalculatedQuantities *  ip_cq 
)
inline

Definition at line 269 of file neuralNetworks.cpp.

◆ get_bounds_info()

bool iCub::optimization::ff2LayNNTrainNLP::get_bounds_info ( Ipopt::Index  n,
Ipopt::Number *  x_l,
Ipopt::Number *  x_u,
Ipopt::Index  m,
Ipopt::Number *  g_l,
Ipopt::Number *  g_u 
)
inline

Definition at line 150 of file neuralNetworks.cpp.

◆ get_error()

virtual double iCub::optimization::ff2LayNNTrainNLP::get_error ( ) const
inlinevirtual

Definition at line 133 of file neuralNetworks.cpp.

◆ get_nlp_info()

bool iCub::optimization::ff2LayNNTrainNLP::get_nlp_info ( Ipopt::Index &  n,
Ipopt::Index &  m,
Ipopt::Index &  nnz_jac_g,
Ipopt::Index &  nnz_h_lag,
IndexStyleEnum &  index_style 
)
inline

Definition at line 139 of file neuralNetworks.cpp.

◆ get_starting_point()

bool iCub::optimization::ff2LayNNTrainNLP::get_starting_point ( Ipopt::Index  n,
bool  init_x,
Ipopt::Number *  x,
bool  init_z,
Ipopt::Number *  z_L,
Ipopt::Number *  z_U,
Ipopt::Index  m,
bool  init_lambda,
Ipopt::Number *  lambda 
)
inline

Definition at line 193 of file neuralNetworks.cpp.

◆ getBounds()

bool iCub::optimization::ff2LayNNTrainNLP::getBounds ( const string &  tag,
double &  min,
double &  max 
)
inlineprotected

Definition at line 64 of file neuralNetworks.cpp.

Member Data Documentation

◆ b1

Vector& iCub::optimization::ff2LayNNTrainNLP::b1
protected

Definition at line 55 of file neuralNetworks.cpp.

◆ b2

Vector& iCub::optimization::ff2LayNNTrainNLP::b2
protected

Definition at line 56 of file neuralNetworks.cpp.

◆ bounds

Property iCub::optimization::ff2LayNNTrainNLP::bounds
protected

Definition at line 49 of file neuralNetworks.cpp.

◆ error

double iCub::optimization::ff2LayNNTrainNLP::error
protected

Definition at line 61 of file neuralNetworks.cpp.

◆ in

const deque<Vector>& iCub::optimization::ff2LayNNTrainNLP::in
protected

Definition at line 58 of file neuralNetworks.cpp.

◆ IW

deque<Vector>& iCub::optimization::ff2LayNNTrainNLP::IW
protected

Definition at line 53 of file neuralNetworks.cpp.

◆ LW

deque<Vector>& iCub::optimization::ff2LayNNTrainNLP::LW
protected

Definition at line 54 of file neuralNetworks.cpp.

◆ net

ff2LayNNTrain& iCub::optimization::ff2LayNNTrainNLP::net
protected

Definition at line 52 of file neuralNetworks.cpp.

◆ out

const deque<Vector>& iCub::optimization::ff2LayNNTrainNLP::out
protected

Definition at line 59 of file neuralNetworks.cpp.

◆ pred

deque<Vector>& iCub::optimization::ff2LayNNTrainNLP::pred
protected

Definition at line 60 of file neuralNetworks.cpp.

◆ randomInit

bool iCub::optimization::ff2LayNNTrainNLP::randomInit
protected

Definition at line 50 of file neuralNetworks.cpp.


The documentation for this class was generated from the following file: