Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
LoggerStub.h
1//
2// Created by marechaljas on 02/08/22.
3//
4
5#pragma once
6
7#include "antares-xpansion/xpansion_interfaces/ILogger.h"
8
9class LoggerNOOPStub : public ILogger {
10 public:
11 void display_message(const std::string& str) override {}
12 void display_message(const std::string& str, LogUtils::LOGLEVEL level,
13 const std::string& context) override {}
14 void PrintIterationSeparatorBegin() override {
15 //
16 }
17 void PrintIterationSeparatorEnd() override {
18 //
19 }
20 void log_at_initialization(const int it_number) override {}
21 void log_iteration_candidates(const LogData& d) override {}
22 void log_master_solving_duration(double durationInSeconds) override {}
23 void LogSubproblemsSolvingWalltime(double durationInSeconds) override {}
24 void LogSubproblemsSolvingCumulativeCpuTime(
25 double durationInSeconds) override {}
26 void log_at_iteration_end(const LogData& d) override {}
27 void log_at_ending(const LogData& d) override {}
28 void log_total_duration(double durationInSeconds) override {}
29 void log_stop_criterion_reached(
30 const StoppingCriterion stopping_criterion) override {}
31 void display_restart_message() override {}
32 void restart_elapsed_time(const double elapsed_time) override {}
33 void number_of_iterations_before_restart(const int num_iterations) override {}
34 void restart_best_iteration(const int best_iterations) override {}
35 void restart_best_iterations_infos(
36 const LogData& best_iterations_data) override {}
37 void LogAtInitialRelaxation() override {}
38 void LogAtSwitchToInteger() override {}
39 void cumulative_number_of_sub_problem_solved(int number) override {}
40};
abstract class for operational logs
Definition ILogger.h:150
Definition LoggerStub.h:9
void display_message(const std::string &str) override
pure virtual method to display a std::string message
Definition LoggerStub.h:11
Definition ILogger.h:48