Template Class observer¶
Defined in File observer.hpp
Class Documentation¶
-
template<typename
ProblemType>
classioh::logger::observer¶ A class of methods of setting triggers recording evaluations.
Four methods is introduced here:
Recording evaluations by a static interval.
Recording complete evaluations.
Recording evaluations as the best found solution is updated.
Recording evaluations at pre-defined points or/and with a static number for each exponential bucket.
Unnamed Group
-
using
input_type= ProblemType¶ API for subclasses
-
void
track_problem(const ProblemType &problem) = 0¶
-
void
track_suite(const suite::base<ProblemType> &suite) = 0¶
-
void
do_log(const std::vector<double> &log_info) = 0¶
-
observer()¶ }@
-
~observer()¶
-
void
set_complete_flag(const bool complete_flag)¶
-
bool
complete_status() const¶
-
bool
complete_trigger() const¶
-
void
set_interval(const int interval)¶
-
bool
interval_status() const¶
-
bool
interval_trigger(const size_t evaluations) const¶
-
void
set_update_flag(const bool update_flag)¶
-
bool
update_status() const¶
-
bool
update_trigger(const double fitness, const common::optimization_type optimization_type)¶
-
void
set_time_points(const std::vector<int> &time_points, const int number_of_evaluations, const int time_points_exp_base1 = 10, const int time_points_exp_base2 = 10)¶
-
bool
time_points_status() const¶
-
bool
time_points_trigger(const size_t evaluations)¶
-
void
reset_observer(const common::optimization_type optimization_type)¶