|
OptiPy
|
Implements the StretchedV benchmark function. More...
#include <StretchedV.h>
Public Member Functions | |
| double | evaluate (const std::vector< double > &x) const override |
| Evaluates the fitness of a candidate solution. | |
| Public Member Functions inherited from Problem | |
| Problem (double lb, double ub, const std::string_view n) | |
| Constructs a Problem instance. | |
| virtual | ~Problem ()=default |
| Virtual destructor for safe polymorphic cleanup. | |
| double | evaluateSolution (const std::vector< double > &solution) |
| void | getInitialSolutions (std::vector< std::vector< double > > &population) |
| double | getLowerBounds () const |
| double | getUpperBounds () const |
| const std::string | getName () const |
| unsigned long | getSeed () const |
| void | setSeed (unsigned long s) |
| void | setDimensions (size_t dims) |
Additional Inherited Members | |
| Protected Attributes inherited from Problem | |
| const double | lowerBound |
| Lower bound of the search space. | |
| const double | upperBound |
| Upper bound of the search space. | |
| const std::string | name |
| Name of the benchmark function. | |
| size_t | dimensions |
| unsigned long | seed = 0 |
Implements the StretchedV benchmark function.
|
inlineoverridevirtual |
Evaluates the fitness of a candidate solution.
| x | The solution vector to evaluate. |
Implements Problem.