CostFunction Class Reference

#include <costfunction.hpp>

Inheritance diagram for CostFunction:

Inheritance graph
[legend]
List of all members.

Detailed Description

Cost function abstract class for optimization problem.


Public Member Functions

virtual double value (const Array &x) const=0
 method to overload to compute the cost functon value in x

virtual void gradient (Array &grad, const Array &x) const
 method to overload to compute grad_f, the first derivative of

virtual double valueAndGradient (Array &grad, const Array &x) const
 method to overload to compute grad_f, the first derivative of

virtual double finiteDifferenceEpsilon () const
 Default epsilon for finite difference method :.


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

QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen