|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
#include <synthetic.hpp>
Public Member Functions | |
| chung_reynolds (int dims) | |
| 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 |
\( with value \)({x}^*) = -1.031628%. */ class camel6: public synthetic { public: camel6 (); double evaluate (inst::set x) override; };
// We omit the chen* functions on the basis that they are difficult to // calculate leading to floating-point errors. When we are given control over // the experimental design, we can constrain our optimisations to values which // are easily represented by floating-point values; henc ethese benchmarks can // be considered somewhat unrealistic.
/** The Chichinadze function has the following formula
\[ f(\mathbf{x}) = x_1^2 - 12x_1 + 11 + 10\cos(\pi x_1/2) + 8\sin(5\pi x_1/2) - (1/5)^{1/2}\exp\bigg(-0.5(x_2 - 0.5)^2\bigg), \]
subject to \(-30 \le x_i \le 30\), with two global minimum located at \(\mathbf{x}^* = (6.189866586965680, 0.5)\) with value \(f(\mathbf{x}^*) = -42.94438701899098\f%. */ class chichinadze: public synthetic { public: chichinadze (); double evaluate (inst::set x) override; }; /** The Chung Reynolds functions has the following formula: \f[ f(\mathbf{x}) = \left(\sum^D_{i=1}x_i^2\right)^2, \f] subject to \)-100 x_i 100 \(, with the global minimum located at \){x}^* = (0, , 0) \( with value \)f({x}^*) = 0
|
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