Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
robotLibPbD::COptimizer Class Reference

#include <optimizer.h>

Inheritance diagram for robotLibPbD::COptimizer:
Inheritance graph
[legend]

Public Member Functions

 COptimizer ()
 
virtual std::string generateOutput ()
 
bool getResult (COptimizerResult &out)
 
void load (std::string cfg, std::string data, unsigned int start=0)
 
void run (const std::vector< double > &initialValues)
 
void setDataMax (unsigned int examplesMax)
 
void setEpsilon (double eps)
 
void setIterations (unsigned int iterations)
 
void setQuit (bool doQuit)
 
void setRandomStart (bool useRandom)
 
void setShowModulo (unsigned int counterMod)
 
void setShowResult (bool useShowResult)
 
void setTrimming (double trim)
 

Static Public Member Functions

static void rosenbrockCallback (int nparam, double *x, double *fj, void *extraparams)
 

Protected Member Functions

void callback (int nparam, double *x, double *fj)
 
int getValue (TiXmlElement *node, std::string item)
 
bool isEqual (std::vector< double > &first, std::vector< double > &second, double eps=0.1)
 
void loadData (std::string filename, unsigned int startId=0)
 
void loadDofs (std::string filename)
 
void loadGoals (std::string filename)
 
void loadValueSetters (std::string filename)
 
std::string readFromFile (std::string filename)
 
void reset ()
 
void setData (std::vector< double > &values)
 
void setValue (double *x)
 
bool writeToFile (std::string filename, std::string buffer)
 

Protected Attributes

unsigned int counter
 
unsigned int counterMod
 
std::vector< OptimizerContainerdata
 
std::vector< double > distances
 
unsigned int dofs
 
bool doQuit
 
double epsilon
 
std::vector< std::vector< double > > examples
 
unsigned int examplesMax
 
CFrameContainer frames
 
std::vector< OptimizerGoal * > functions
 
std::vector< OptimizerGoalGlobal * > globalFunctions
 
DataPairs information
 
unsigned int iterations
 
std::vector< double > result
 
double resultValue
 
double trim
 
unsigned int trimming
 
bool useRandom
 
bool useShowResult
 
std::vector< ValueSettervalueSetters
 

Detailed Description

Definition at line 49 of file optimizer.h.

Constructor & Destructor Documentation

robotLibPbD::COptimizer::COptimizer ( )
inline

Definition at line 88 of file optimizer.h.

Member Function Documentation

void COptimizer::callback ( int  nparam,
double *  x,
double *  fj 
)
protected

Definition at line 94 of file optimizer.cpp.

std::string COptimizer::generateOutput ( )
virtual

Reimplemented in robotLibPbD::COptimizerRos.

Definition at line 237 of file optimizer.cpp.

bool COptimizer::getResult ( COptimizerResult out)

Definition at line 569 of file optimizer.cpp.

int COptimizer::getValue ( TiXmlElement *  node,
std::string  item 
)
protected

Definition at line 269 of file optimizer.cpp.

bool COptimizer::isEqual ( std::vector< double > &  first,
std::vector< double > &  second,
double  eps = 0.1 
)
protected

Definition at line 177 of file optimizer.cpp.

void COptimizer::load ( std::string  cfg,
std::string  data,
unsigned int  start = 0 
)

Definition at line 451 of file optimizer.cpp.

void COptimizer::loadData ( std::string  filename,
unsigned int  startId = 0 
)
protected

Definition at line 186 of file optimizer.cpp.

void COptimizer::loadDofs ( std::string  filename)
protected

Definition at line 286 of file optimizer.cpp.

void COptimizer::loadGoals ( std::string  filename)
protected

Definition at line 374 of file optimizer.cpp.

void COptimizer::loadValueSetters ( std::string  filename)
protected

Definition at line 325 of file optimizer.cpp.

std::string COptimizer::readFromFile ( std::string  filename)
protected

Definition at line 50 of file optimizer.cpp.

void COptimizer::reset ( )
protected

Definition at line 432 of file optimizer.cpp.

void COptimizer::rosenbrockCallback ( int  nparam,
double *  x,
double *  fj,
void *  extraparams 
)
static

Definition at line 88 of file optimizer.cpp.

void COptimizer::run ( const std::vector< double > &  initialValues)

Definition at line 465 of file optimizer.cpp.

void COptimizer::setData ( std::vector< double > &  values)
protected

Definition at line 71 of file optimizer.cpp.

void robotLibPbD::COptimizer::setDataMax ( unsigned int  examplesMax)
inline

Definition at line 103 of file optimizer.h.

void robotLibPbD::COptimizer::setEpsilon ( double  eps)
inline

Definition at line 98 of file optimizer.h.

void robotLibPbD::COptimizer::setIterations ( unsigned int  iterations)
inline

Definition at line 100 of file optimizer.h.

void robotLibPbD::COptimizer::setQuit ( bool  doQuit)
inline

Definition at line 102 of file optimizer.h.

void robotLibPbD::COptimizer::setRandomStart ( bool  useRandom)
inline

Definition at line 101 of file optimizer.h.

void robotLibPbD::COptimizer::setShowModulo ( unsigned int  counterMod)
inline

Definition at line 105 of file optimizer.h.

void robotLibPbD::COptimizer::setShowResult ( bool  useShowResult)
inline

Definition at line 104 of file optimizer.h.

void robotLibPbD::COptimizer::setTrimming ( double  trim)
inline

Definition at line 99 of file optimizer.h.

void COptimizer::setValue ( double *  x)
protected

Definition at line 40 of file optimizer.cpp.

bool COptimizer::writeToFile ( std::string  filename,
std::string  buffer 
)
protected

Definition at line 258 of file optimizer.cpp.

Member Data Documentation

unsigned int robotLibPbD::COptimizer::counter
protected

Definition at line 63 of file optimizer.h.

unsigned int robotLibPbD::COptimizer::counterMod
protected

Definition at line 67 of file optimizer.h.

std::vector<OptimizerContainer> robotLibPbD::COptimizer::data
protected

Definition at line 55 of file optimizer.h.

std::vector<double> robotLibPbD::COptimizer::distances
protected

Definition at line 62 of file optimizer.h.

unsigned int robotLibPbD::COptimizer::dofs
protected

Definition at line 66 of file optimizer.h.

bool robotLibPbD::COptimizer::doQuit
protected

Definition at line 68 of file optimizer.h.

double robotLibPbD::COptimizer::epsilon
protected

Definition at line 69 of file optimizer.h.

std::vector<std::vector<double> > robotLibPbD::COptimizer::examples
protected

Definition at line 61 of file optimizer.h.

unsigned int robotLibPbD::COptimizer::examplesMax
protected

Definition at line 65 of file optimizer.h.

CFrameContainer robotLibPbD::COptimizer::frames
protected

Definition at line 58 of file optimizer.h.

std::vector<OptimizerGoal*> robotLibPbD::COptimizer::functions
protected

Definition at line 57 of file optimizer.h.

std::vector<OptimizerGoalGlobal*> robotLibPbD::COptimizer::globalFunctions
protected

Definition at line 56 of file optimizer.h.

DataPairs robotLibPbD::COptimizer::information
protected

Definition at line 59 of file optimizer.h.

unsigned int robotLibPbD::COptimizer::iterations
protected

Definition at line 65 of file optimizer.h.

std::vector<double> robotLibPbD::COptimizer::result
protected

Definition at line 53 of file optimizer.h.

double robotLibPbD::COptimizer::resultValue
protected

Definition at line 69 of file optimizer.h.

double robotLibPbD::COptimizer::trim
protected

Definition at line 64 of file optimizer.h.

unsigned int robotLibPbD::COptimizer::trimming
protected

Definition at line 67 of file optimizer.h.

bool robotLibPbD::COptimizer::useRandom
protected

Definition at line 68 of file optimizer.h.

bool robotLibPbD::COptimizer::useShowResult
protected

Definition at line 68 of file optimizer.h.

std::vector<ValueSetter> robotLibPbD::COptimizer::valueSetters
protected

Definition at line 52 of file optimizer.h.


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


asr_kinematic_chain_optimizer
Author(s): Aumann Florian, Heller Florian, Jäkel Rainer, Wittenbeck Valerij
autogenerated on Mon Jun 10 2019 12:35:36