pass::evaluation_time_stall Class Reference
#include <evaluation_time_stall.hpp>
Inheritance diagram for pass::evaluation_time_stall:
Collaboration diagram for pass::evaluation_time_stall:
Public Member Functions | |
evaluation_time_stall (const pass::problem &wrapped_problem) | |
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 |
Public Attributes | |
const pass::problem & | wrapped_problem |
arma::uword | repetitions |
Public Attributes inherited from pass::problem | |
const arma::vec | lower_bounds |
const arma::vec | upper_bounds |
const std::string | name |
Detailed Description
This helper class wraps another problem
object and artifically increases the calculation time. Every time evaluation_time_stall::evaluate()
is called, the call is forwarded to wrapped_problem
and repeated repetitions
times.
Constructor & Destructor Documentation
◆ evaluation_time_stall()
|
explicit |
Initializes this object with the same bounds as wrapped_problem
and repetitions
set to 1.
Member Function Documentation
◆ evaluate()
|
overridevirtual |
Evaluates this problem at agent
, which must match the dimensions of this problem.
Implements pass::problem.
Member Data Documentation
◆ repetitions
arma::uword pass::evaluation_time_stall::repetitions |
The number of times every evaluate()
call is repeated. Must be 1 or greater.
◆ wrapped_problem
const pass::problem& pass::evaluation_time_stall::wrapped_problem |
The internal problem to which evaluate
calls are forwarded.
CAUTION: This variable is a reference type! Do not free or reuse the memory of wrapped_object
until evaluation_time_stall
is destroyed!
The documentation for this class was generated from the following files:
- /Users/romeo/Desktop/PASS/include/pass_bits/helper/evaluation_time_stall.hpp
- /Users/romeo/Desktop/PASS/src/helper/evaluation_time_stall.cpp