OPTK  0.1.2
Toolkit for global optimisation algorithms
Public Member Functions | List of all members
syn::hartman6 Class Reference

#include <synthetic.hpp>

Inheritance diagram for syn::hartman6:
syn::synthetic optk::benchmark

Public Member Functions

double evaluate (inst::set x) override
 
- Public Member Functions inherited from syn::synthetic
 synthetic (const std::string &n, u_int dims, double lb, double ub, double opt)
 
 synthetic (const std::string &n, u_int dims, double opt)
 
 ~synthetic ()
 
sspace::sspace_tget_search_space ()
 
void set_properties (std::vector< properties > p)
 
std::vector< propertiesget_properties ()
 
inst::set get_opt_param ()
 
double get_opt ()
 
void update_opt (double opt)
 
u_int get_dims ()
 
void validate_param_set (inst::set x)
 
- Public Member Functions inherited from optk::benchmark
 benchmark (const std::string &name)
 
std::string get_name ()
 

Additional Inherited Members

- Protected Member Functions inherited from syn::synthetic
void set_opt_param (inst::set op)
 
- Protected Attributes inherited from syn::synthetic
u_int m_dims
 
double m_lb
 
double m_ub
 
double m_opt
 
std::vector< propertiesm_properties
 
inst::set opt_params
 
sspace::sspace_t m_sspace
 
- Protected Attributes inherited from optk::benchmark
std::string m_name
 

Detailed Description

The Hartman 6 function has the following formula:

\[ f(\mathbf{x}) = -\sum^4_{i=1}c_i \exp \left[ \sum^6_{j=1}a_{ij} (x_j - p_{ij})^2 \right], \]

where

\[ \begin{align*} \mathbf{A} = [a_{ij}] &= \begin{bmatrix} 10 & 3 & 17 & 3.5 & 17 & 8 \\ 0.05 & 10 & 17 & 0.1 & 8 & 14 \\ 3 & 3.5 & 1.7 & 10 & 17 & 8 \\ 17 & 8 & 0.05 & 10 & 0.1 & 14 \end{bmatrix} \\ \mathbf{c} = c_i &= \begin{bmatrix}1 & 1.2 & 3 & 3.2 \end{bmatrix} \\ \mathbf{p} = p_{ij} &= \begin{bmatrix} \end{bmatrix} 0.1312 & 0.1696 & 0.5569 & 0.0124 & 0.8283 & 0.5886 \\ 0.2329 & 0.4135 & 0.8307 & 0.3736 & 0.1004 & 0.9991 \\ 0.2348 & 0.1451 & 0.3522 & 0.2883 & 0.3047 & 0.665 \\ 0.4047 & 0.8828 & 0.8732 & 0.5743 & 0.1091 & 0.0381 \end{bmatrix} \end{align*} \]

subject to \(0\le x_i \le 1\) for \(i\in [1, 6]\). The global minimum is located at \(\mathbf{x}^* = (0.20168952, 0.15001069, 0.47687398, 0.27533243, 0.31165162, 0.65730054)\) with value \(f(\mathbf{x}^*) = -3.32236801141551\).

Member Function Documentation

◆ evaluate()

double syn::hartman6::evaluate ( inst::set  x)
overridevirtual

Evaluate the benchmark (i.e. calculate the value of the objective fuinction) on the provided values.

Parameters
xA vector of double-precision values to evaluate the benchmark at.
Todo:
Verify that a vector of doubles does not constrict the range of benchmark functions which may be evaluated (i.e. as opposed to categorical variables such as strings).

Implements optk::benchmark.


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