|
Optimist
0.0.0
A C++ library for optimization
|
#include <Beale.hh>
Inherits Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > >.
Public Types | |
| using | Base = DenseCostFunction<Vector, 2, Beale<Vector>> |
| using | Dense |
| using | DenseMatrix |
| using | Scalar |
| Public Types inherited from Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > > | |
| using | VectorTrait |
| using | Scalar |
| using | Dense |
| using | DenseMatrix |
| Public Types inherited from Optimist::FunctionBase< Input, Output, DerivedFunction > | |
| using | InputTrait = TypeTrait<Input> |
| using | OutputTrait = TypeTrait<Output> |
| using | Scalar = typename InputTrait::Scalar |
| using | FirstDerivative |
| using | SecondDerivative |
Public Member Functions | |
| Beale () | |
| constexpr std::string | name_impl () const |
| Scalar | value (const Dense &x) const |
| void | gradient (const Dense &x, Dense &g) const |
| void | hessian (const Dense &x, DenseMatrix &H) const |
| Public Member Functions inherited from Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > > | |
| bool | evaluate_impl (const Vector &x, Scalar &out) const |
| bool | first_derivative_impl (const Vector &x, FirstDerivative &out) const |
| bool | second_derivative_impl (const Vector &x, SecondDerivative &out) const |
| Public Member Functions inherited from Optimist::Function< Input, Output, DerivedFunction > | |
| Function () | |
| constexpr std::string | name () const |
| bool | evaluate (const Input &x, Output &out) const |
| bool | jacobian (const Input &x, FirstDerivative &out) const |
| bool | hessian (const Input &x, SecondDerivative &out) const |
| Public Member Functions inherited from Optimist::FunctionBase< Input, Output, DerivedFunction > | |
| FunctionBase () | |
| constexpr std::string | name () const |
| bool | evaluate (const Input &x, Output &out) const |
| bool | first_derivative (const Input &x, FirstDerivative &out) const |
| bool | second_derivative (const Input &x, SecondDerivative &out) const |
| constexpr Integer | input_dimension () const |
| constexpr Integer | output_dimension () const |
| const std::vector< Input > & | solutions () const |
| const std::vector< Input > & | guesses () const |
| const Input & | solution (const Integer i) const |
| const Input & | guess (const Integer i) const |
| bool | is_solution (const Input &x, const Scalar tol=FunctionBase::SQRT_EPSILON) const |
Static Private Member Functions | |
| static Scalar | c (const Integer i) |
Additional Inherited Members | |
| Static Public Member Functions inherited from Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > > | |
| static constexpr Integer | dimension () |
| Protected Member Functions inherited from Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > > | |
| void | add_solution (const Dense &x) |
| void | add_guess (const Dense &x) |
| Static Protected Member Functions inherited from Optimist::TestSet::DenseCostFunction< Vector, 2, Beale< Vector > > | |
| static Dense | make (std::initializer_list< Scalar > values) |
| Protected Attributes inherited from Optimist::FunctionBase< Input, Output, DerivedFunction > | |
| std::vector< Input > | m_solutions |
| std::vector< Input > | m_guesses |
\[ f(x, y) = (1.5 - x + xy)^2 + (2.25 - x + xy^2)^2 + (2.625 - x + xy^3)^2 \text{,} \]
with global minimum \( f(3, 0.5) = 0 \) at the bottom of a narrow curved valley surrounded by very steep walls.
| Vector | Eigen vector type. |
| using Optimist::TestSet::Beale< Vector >::Base = DenseCostFunction<Vector, 2, Beale<Vector>> |
| using Optimist::TestSet::DenseCostFunction< Vector, N, Beale< Vector > >::Dense |
| using Optimist::TestSet::DenseCostFunction< Vector, N, Beale< Vector > >::DenseMatrix |
| using Optimist::TestSet::DenseCostFunction< Vector, N, Beale< Vector > >::Scalar |
|
inline |
Class constructor for Beale's function.
|
inlinestaticprivate |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |