Public Member Functions | |
| Rosenbrock () | |
| real | compute_objective (const Vector< real > &aX, Vector< real > &aGradient) override |
| evaluate the objective at the design point aX. | |
| Public Member Functions inherited from belfem::opt::Objective | |
| Objective (const uint aDimension) | |
| virtual | ~Objective ()=default |
| uint | dimension () const |
| return the number of design variables | |
|
inline |
|
inlineoverridevirtual |
evaluate the objective at the design point aX.
| aX | design vector, length dimension() |
| aGradient | gradient output. For derivative-free algorithms this vector has length zero and must be ignored. For gradient-based algorithms it has length dimension() and the implementation must fill it with d(objective)/d(aX). |
Implements belfem::opt::Objective.