|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
#include <synthetic.hpp>
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_t * | get_search_space () |
| void | set_properties (std::vector< properties > p) |
| std::vector< properties > | get_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< properties > | m_properties |
| inst::set | opt_params |
| sspace::sspace_t | m_sspace |
Protected Attributes inherited from optk::benchmark | |
| std::string | m_name |
Corana's parabola function has the following formula:
\[ f(\mathbf{x}) = \sum^n_{i=1} \begin{cases} 0.15d_i \bigg(z_i - 0.05 \text{sign} (z_i)\bigg)^2 &\text{if } \vert x_i - z_i\vert < 0.05 \\ d_ix_i^2 &\text{otherwise}, \end{cases} \]
where
\[ \begin{align*} z_i &= 0.2 \left\lfloor \left\vert \frac{x_i}{s_i}\right\vert + 0.49999 \right\rfloor \text{sign}(x_i), \\ s_i &= 0.2, \\ d_i &= [1, 1000, 10, 100]. \end{align*} \]
The parameters are subject to \(-100 \le x_i \le 100\) for \(i = 1,2,3,4\), with the global minimum occurring at \(\mathbf{x}^* = (0, \cdots, 0)\) with value \(f(\mathbf{x}^*) = 0\).
FIXME Do not use in rankings; fix the floating-point inaccuracies before including in benchmark suite.
|
overridevirtual |
Evaluate the benchmark (i.e. calculate the value of the objective fuinction) on the provided values.
| x | A vector of double-precision values to evaluate the benchmark at. |
Implements optk::benchmark.
1.8.13