Class AveragingLoadModel

Inheritance Relationships

Base Type

Class Documentation

class AveragingLoadModel : public combigrid::LearningLoadModel

AveragingLoadModel is a LearningLoadModel that is saving received duration information to the file system. For its expected load calculation it is using the average of previously received duration information (from files). The expected load calculation of the LinearLoadModel is used if no previous duration information is available.

TODO: Could implement additional functions to become a SpecificUOTLearningLoadModel

Public Functions

inline AveragingLoadModel(std::vector<LevelVector> levelVectors)
inline virtual real eval(const LevelVector &l) override

Calculates the relative expected load of a given task compared to other tasks.

The calculated load is in no specific unit. However, the “greater than”-relation for two tasks has to be correct.

Parameters:

lvlVec – The level vector corresponding to the task.

Returns:

Relative value (in comparison of different tasks) of the expected load for the given task.

inline ~AveragingLoadModel()
inline virtual void addDurationInformation(const DurationInformation &dI, const LevelVector &l) override

Adds duration information about a task.

Parameters:
  • info – The duration information to add.

  • lvlVec – The level vector of the task to add the information to.