numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_prob_collect::opt::powell4_function Class Reference

Class of Powell function in 4 dimensions. More...

#include <num_prob_collect/opt/powell4_function.h>

+ Collaboration diagram for num_prob_collect::opt::powell4_function:

Public Types

using value_type = double
 Type of function values.
 
using variable_type = Eigen::Vector4d
 Type of variables.
 

Public Member Functions

void evaluate_on (const Eigen::Vector4d &x)
 Evaluate function value on variable.
 
auto gradient () const -> const Eigen::Vector4d &
 Get gradient.
 
auto value () const -> const double &
 Get function value.
 

Private Attributes

Eigen::Vector4d grad_ {}
 Gradient.
 
double value_ {}
 Function value.
 

Detailed Description

Class of Powell function in 4 dimensions.

This function has no local minimum except for the global one at (0, 0, 0, 0). Search region is [-4, 5] for each dimension.

Reference: http://www-optima.amp.i.kyoto-u.ac.jp/member/student/hedar/Hedar_files/TestGO_files/Page2720.htm

Definition at line 36 of file powell4_function.h.

Member Typedef Documentation

◆ value_type

Type of function values.

Definition at line 42 of file powell4_function.h.

◆ variable_type

Type of variables.

Definition at line 39 of file powell4_function.h.

Member Function Documentation

◆ evaluate_on()

void num_prob_collect::opt::powell4_function::evaluate_on ( const Eigen::Vector4d & x)
inline

Evaluate function value on variable.

Parameters
[in]xVariable.

Definition at line 49 of file powell4_function.h.

◆ gradient()

auto num_prob_collect::opt::powell4_function::gradient ( ) const -> const Eigen::Vector4d&
inlinenodiscard

Get gradient.

Returns
Gradient.

Definition at line 77 of file powell4_function.h.

◆ value()

auto num_prob_collect::opt::powell4_function::value ( ) const -> const double&
inlinenodiscard

Get function value.

Returns
Function value.

Definition at line 70 of file powell4_function.h.

Member Data Documentation

◆ grad_

Eigen::Vector4d num_prob_collect::opt::powell4_function::grad_ {}
private

Gradient.

Definition at line 86 of file powell4_function.h.

◆ value_

double num_prob_collect::opt::powell4_function::value_ {}
private

Function value.

Definition at line 83 of file powell4_function.h.


The documentation for this class was generated from the following file: