FMU/Source/Appliance_Large_Learning.cpp
/**
 * @brief Appliance cost is added to for calculating the reward function
 * @param cost cost of using the appliance
 */
@brief Appliance cost is added to for calculating the reward function
@param cost cost of using the appliance
@brief Appliance cost is added to for calculating the reward function @param cost cost of using the appliance
void Appliance_Large_Learning::addToCost(const double cost) {
  if (!powerProfile.empty() && powerProfile.front().isLearningPeriod) {
    powerProfile.front().cost += cost;
  }
}
void Appliance_Large_Learning :: addToCost ( const double cost ) { if ( ! powerProfile . empty ( ) && powerProfile . front ( ) . isLearningPeriod ) { powerProfile . front ( ) . cost += cost ; } }
@brief Appliance cost is added to for calculating the reward function
 @param cost cost of using the appliance
@brief Appliance cost is added to for calculating the reward function @param cost cost of using the appliance