pass::sum_of_different_powers_function Class Reference
#include <sum_of_different_powers_function.hpp>
Inheritance diagram for pass::sum_of_different_powers_function:
Collaboration diagram for pass::sum_of_different_powers_function:
Public Member Functions | |
sum_of_different_powers_function (const arma::uword dimension) | |
double | evaluate (const arma::vec &agent) const override |
Public Member Functions inherited from pass::problem | |
arma::vec | bounds_range () const noexcept |
arma::uword | dimension () const noexcept |
problem (const arma::uword dimension, const double lower_bound, const double upper_bound, const std::string &name) | |
problem (const arma::vec &lower_bounds, const arma::vec &upper_bounds, const std::string &name) | |
double | evaluate_normalised (const arma::vec &normalised_agent) const |
arma::mat | normalised_random_agents (const arma::uword count) const |
arma::mat | normalised_hammersley_agents (const arma::uword count) const |
arma::mat | initialise_normalised_agents (const arma::uword count) const |
Additional Inherited Members | |
Public Attributes inherited from pass::problem | |
const arma::vec | lower_bounds |
const arma::vec | upper_bounds |
const std::string | name |
Detailed Description
The Sum of Different Powers function is unimodal.
Its optimal parameter = (0, ..., 0) and optimal function value = 0.
\[ f(x_1 \cdots x_n) = \sum_{i=1}^n |x_i|^{(i+1)} \]
\[ -1.00 \leq x_i \leq 1.00 \]
\[ \text{minimum at }f(0, \cdots, 0) = 0 \]
Constructor & Destructor Documentation
◆ sum_of_different_powers_function()
|
explicit |
Initialises a different powers function with dimension
dimensions, lower bounds of -1.0 and upper bounds of 1.0.
Member Function Documentation
◆ evaluate()
|
overridevirtual |
Evaluates this problem at agent
, which must match the dimensions of this problem.
Implements pass::problem.
The documentation for this class was generated from the following files:
- /Users/romeo/Desktop/PASS/include/pass_bits/problem/optimisation_benchmark/sum_of_different_powers_function.hpp
- /Users/romeo/Desktop/PASS/src/problem/optimisation_benchmark/sum_of_different_powers_function.cpp