HCL_Functional_d is the base class for all real-valued functions
![]() | Domain () Domain space access |
![]() | MaxStep ( const HCL_Vector_d & x, const HCL_Vector_d &dir) MaxStep computes the longest vector from x in the direction dir that will lie in the domain of definition of the functional, i |
![]() | Scan ( const HCL_Vector_d & x, const HCL_Vector_d & dx, int N, double hmin, double hmax, char * fname = NULL ) Scan computes the value of the function at N points |
![]() | Value ( const HCL_Vector_d & x ) Value evaluates the function at x |
![]() | Write ( ostream & str ) Debugging information |
HCL_Functional_d is the base class for all real-valued functions. The primary purpose of this class is to represent objective functions in optimization problems. Since this class provides no derivative information, an object of this type would typically be used in a derivative-free algorithm.The primary methods of this class are
- Domain Returns a reference to the domain of the functional, which is a vector space. This is used primarily for error-checking; for example:
if( x.Space() != f.Domain() ) // Error condition- Value Returns the value of the functional at a point. Example:
double fx = f.Value( x );Defining objective functions is expected to be one of the main activities of users of HCL, since the objective function provides the point of contact between the application software and HCL's optimization code. Please see one of the test programs that comes in the HCLtest directory for examples.
virtual double Value( const HCL_Vector_d & x )
virtual double MaxStep( const HCL_Vector_d & x, const HCL_Vector_d &dir)
void Scan( const HCL_Vector_d & x, const HCL_Vector_d & dx, int N, double hmin, double hmax, char * fname = NULL )
virtual ostream& Write( ostream & str )
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de