|
Unfit
3.1.1
Data fitting and optimization software
|
#include <Himmelblau.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > &variable) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
The Himmelblau Function is defined as (x^2 + y -11)^2 + (x + y^2 - 7)^2
Number of dimensions = 2
The global minimum is: 0 at (3, 2), (-2.805118, 3.131312), (-3.779310, -3.283186) and (3.584428, -1.848126)T Initial guess: (4, 2), (-4, 2), (-4, -2), (4, -2)
|
inlinevirtual |
We overload the operator as required in GenericCostFunction to calculate the difference between each experimental value and its corresponding value predicted by the model equation i.e. residual
Intended use : residuals = cost_func(const std::vector<double> ¶m);
| variable | vector containing the current estimates of the variables |
Implements Unfit::GenericCostFunction.
1.8.13