AutoPas  3.0.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
autopas::TuningStrategyLogReplayer Class Reference

This class is able to replay a log file to a tuning strategy to observe its behavior in the logged scenario. More...

#include <TuningStrategyLogReplayer.h>

Public Member Functions

 TuningStrategyLogReplayer (std::string filename, std::shared_ptr< TuningStrategyInterface > tuningStrategy, const std::set< Configuration > &searchSpace)
 Creates a log replayer from a log file and a tuning strategy to replay to.
 
std::optional< Configurationreplay ()
 Replays the log to the tuning strategy.
 

Detailed Description

This class is able to replay a log file to a tuning strategy to observe its behavior in the logged scenario.

Can only provide evidence for configurations that has actually been logged, so make sure the necessary data is in the log. Collecting data with FullSearch ensures this.

Constructor & Destructor Documentation

◆ TuningStrategyLogReplayer()

autopas::TuningStrategyLogReplayer::TuningStrategyLogReplayer ( std::string  filename,
std::shared_ptr< TuningStrategyInterface tuningStrategy,
const std::set< Configuration > &  searchSpace 
)

Creates a log replayer from a log file and a tuning strategy to replay to.

Parameters
filenameThe name of the log file.
tuningStrategyThe tuning strategy to replay to.
searchSpaceThe available search space.

Member Function Documentation

◆ replay()

std::optional< Configuration > autopas::TuningStrategyLogReplayer::replay ( )

Replays the log to the tuning strategy.

Returns
The best configuration found by the tuning strategy, if there is any

The documentation for this class was generated from the following files: