pass::de_jong_function Class Reference

#include <de_jong_function.hpp>

Inheritance diagram for pass::de_jong_function:
Collaboration diagram for pass::de_jong_function:

Public Member Functions

 de_jong_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

So called first function of De Jong’s is one of the simplest test benchmark. Function is continuous, convex and unimodal.

Its optimal parameter = (0, ..., 0) and optimal function value = 0.

\[ f(x_1 \cdots x_n) = \sum_{i=1}^n x_i^2 \]

\[ -5.12 \leq x_i \leq 5.12 \]

\[ \text{minimum at }f(0, \cdots, 0) = 0 \]

Constructor & Destructor Documentation

◆ de_jong_function()

pass::de_jong_function::de_jong_function ( const arma::uword  dimension)
explicit

Initialises a De Jong's function with dimension dimensions, lower bounds of -5.12 and upper bounds of 5.12.

Member Function Documentation

◆ evaluate()

double pass::de_jong_function::evaluate ( const arma::vec &  agent) const
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: