UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HJOptim Class Reference

#include <hj_optim.hpp>

Inheritance diagram for HJOptim:
AbstractOptim

Public Member Functions

 HJOptim (const AbstractOptim::Space &space, size_t iters_num)
 
void setItersNum (unsigned iters_num)
 
unsigned getItersNum ()
 
virtual bool minimize (const AbstractResidual &res, std::vector< double > &x) const
 
- Public Member Functions inherited from AbstractOptim
 AbstractOptim (const AbstractOptim::Space &space)
 
void setSpace (const Space &space)
 
Spacespace ()
 

Protected Member Functions

void step (double a, const std::vector< double > &start_value, const std::vector< double > &min_lim, const std::vector< double > &max_lim, std::vector< double > &y, std::vector< double > &z) const
 
double conf (double F0, const AbstractResidual &res, const std::vector< double > &h, const std::vector< double > &min_lim, const std::vector< double > &max_lim, std::vector< double > &z, std::vector< double > &y) const
 

Protected Attributes

unsigned m_iters_num
 
- Protected Attributes inherited from AbstractOptim
Space m_space
 

Additional Inherited Members

- Public Types inherited from AbstractOptim
typedef std::vector< SpaceElemSpace
 

Detailed Description

Hooke-Jeeves optimization method

Constructor & Destructor Documentation

HJOptim::HJOptim ( const AbstractOptim::Space space,
size_t  iters_num 
)
inline

Default constructor with maximal number of iterations provided

Member Function Documentation

double HJOptim::conf ( double  F0,
const AbstractResidual res,
const std::vector< double > &  h,
const std::vector< double > &  min_lim,
const std::vector< double > &  max_lim,
std::vector< double > &  z,
std::vector< double > &  y 
) const
protected

Configuration operator construction.

virtual bool HJOptim::minimize ( const AbstractResidual res,
std::vector< double > &  x 
) const
virtual

Minimization, return true if ok

Implements AbstractOptim.

void HJOptim::step ( double  a,
const std::vector< double > &  start_value,
const std::vector< double > &  min_lim,
const std::vector< double > &  max_lim,
std::vector< double > &  y,
std::vector< double > &  z 
) const
protected

Sample step, 'a' is a multiplier parameter.

Member Data Documentation

unsigned HJOptim::m_iters_num
protected

Maximal number of iterations


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