GClasses

GClasses::GRandomSearch Class Reference

At each iteration, this tries a random vector from the unit hypercube. (Your target function should scale the candidate vectors as necessary to cover the desired space.) More...

#include <GStabSearch.h>

Inheritance diagram for GClasses::GRandomSearch:
GClasses::GOptimizer

List of all members.

Public Member Functions

 GRandomSearch (GTargetFunction *pCritic, GRand *pRand)
virtual ~GRandomSearch ()
virtual double iterate ()
 Try another random vector.
virtual double * currentVector ()
 Returns the best vector yet found.

Protected Attributes

GRandm_pRand
double * m_pCandidate
double * m_pBestVector
double m_bestError

Detailed Description

At each iteration, this tries a random vector from the unit hypercube. (Your target function should scale the candidate vectors as necessary to cover the desired space.)


Constructor & Destructor Documentation

GClasses::GRandomSearch::GRandomSearch ( GTargetFunction pCritic,
GRand pRand 
)
virtual GClasses::GRandomSearch::~GRandomSearch ( ) [virtual]

Member Function Documentation

virtual double* GClasses::GRandomSearch::currentVector ( ) [virtual]

Returns the best vector yet found.

Implements GClasses::GOptimizer.

virtual double GClasses::GRandomSearch::iterate ( ) [virtual]

Try another random vector.

Implements GClasses::GOptimizer.


Member Data Documentation