|
Optimist
0.0.0
A C++ library for optimization
|
Powell's singular function. More...
#include <PowellSingular.hh>
Inherits Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< Vector > >.
Public Types | |
| using | Base = DenseSystemFunction<Vector, 4, PowellSingular<Vector>> |
| Public Types inherited from Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< 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 | |
| PowellSingular () | |
| constexpr std::string | name_impl () const |
| void | residual (const Dense &x, Dense &F) const |
| void | jacobian (const Dense &x, DenseMatrix &J) const |
| void | hessian (const Dense &x, const Integer i, DenseMatrix &H) const |
| Public Member Functions inherited from Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< Vector > > | |
| bool | evaluate_impl (const Vector &x, Vector &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 |
Additional Inherited Members | |
| Static Public Member Functions inherited from Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< Vector > > | |
| static constexpr Integer | dimension () |
| static constexpr Integer | equations () |
| Protected Member Functions inherited from Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< Vector > > | |
| void | add_solution (const Dense &x) |
| void | add_guess (const Dense &x) |
| Static Protected Member Functions inherited from Optimist::TestSet::DenseSystemFunction< Vector, 4, PowellSingular< 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 |
\[ \mathbf{F}(\mathbf{x}) = \begin{bmatrix} x_1 + 10x_2 \\ \sqrt{5}(x_3 - x_4) \\ (x_2 - 2x_3)^2 \\ \sqrt{10}(x_1 - x_4)^2 \end{bmatrix} \text{,} \]
whose root \( \mathbf{x} = \mathbf{0} \) has a singular Jacobian, so that Newton-like methods only converge linearly. It is a standard robustness test (Moré, Garbow and Hillstrom, problem 13).
| Vector | Eigen vector type. |
| using Optimist::TestSet::PowellSingular< Vector >::Base = DenseSystemFunction<Vector, 4, PowellSingular<Vector>> |
|
inline |
Class constructor for Powell's singular function.
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |