an object that defines a scalar objective function to be optimized.
More...
#include <cl_Objective.hpp>
an object that defines a scalar objective function to be optimized.
This base class is agnostic of the optimization algorithm: the user derives from it and implements compute_objective(). It plays the same role for the Optimizer that ode::ODE plays for the ode::Integrator.
◆ Objective()
| belfem::opt::Objective::Objective |
( |
const uint | aDimension | ) |
|
|
inline |
◆ ~Objective()
| virtual belfem::opt::Objective::~Objective |
( |
| ) |
|
|
virtualdefault |
◆ compute_objective()
evaluate the objective at the design point aX.
- Parameters
-
| 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). |
- Returns
- the scalar objective value at aX
Implemented in Rosenbrock.
◆ dimension()
| uint belfem::opt::Objective::dimension |
( |
| ) |
const |
|
inline |
return the number of design variables
The documentation for this class was generated from the following file: