GClasses
GClasses::GOptimizerBasicTestTargetFunction Class Reference

#include <GOptimizer.h>

Inheritance diagram for GClasses::GOptimizerBasicTestTargetFunction:
GClasses::GTargetFunction

Public Member Functions

 GOptimizerBasicTestTargetFunction ()
 
virtual double computeError (const GVec &vector)
 Computes the error of the given vector using all patterns. More...
 
- Public Member Functions inherited from GClasses::GTargetFunction
 GTargetFunction (GRelation *pRelation)
 Takes ownership of pRelation. More...
 
 GTargetFunction (size_t dims)
 
virtual ~GTargetFunction ()
 
virtual void initVector (GVec &vector)
 Sets pVector to an initial guess. The default behavior is to initialize the vector to all zeros. You should override this method if different behavior is desired. More...
 
virtual bool isStable ()
 This method should return true if computeError is deterministic with respect to the vector being optimized. It should return false if the error depends on some state other than the vector being optimized. This mostly affects whether the optimization algorithms are permitted to remember old error values for efficiency purposes. Stable is assumed, so you should override this method if your target function is not stable. More...
 
GRelationrelation ()
 Returns a (smart) pointer to the relation, which specifies the type (discrete or real) of each element in the vector that is being optimized. More...
 

Additional Inherited Members

- Protected Attributes inherited from GClasses::GTargetFunction
GRelationm_pRelation
 

Constructor & Destructor Documentation

GClasses::GOptimizerBasicTestTargetFunction::GOptimizerBasicTestTargetFunction ( )
inline

Member Function Documentation

virtual double GClasses::GOptimizerBasicTestTargetFunction::computeError ( const GVec vector)
virtual

Computes the error of the given vector using all patterns.

Implements GClasses::GTargetFunction.