FMU/Source/Appliance_Large_Learning.cpp
/**
 * @brief The reward function
 * @details calculate the reward function
 * @return the reward
 */
@brief The reward function
@details calculate the reward function
@return the reward
@brief The reward function @details calculate the reward function @return the reward
double Appliance_Large_Learning::calculateReward() {
  double costOfProfile = powerProfile.front().cost;
  double sizeOfProfile = powerProfile.front().power.size();
  double highestTimeRequired = powerProfile.front().maxTimeRequired;
  return -(costOfProfile / sizeOfProfile * highestTimeRequired);
}
double Appliance_Large_Learning :: calculateReward ( ) { double costOfProfile = powerProfile . front ( ) . cost ; double sizeOfProfile = powerProfile . front ( ) . power . size ( ) ; double highestTimeRequired = powerProfile . front ( ) . maxTimeRequired ; return - ( costOfProfile / sizeOfProfile * highestTimeRequired ) ; }
@brief The reward function
 @details calculate the reward function
 @return the reward
@brief The reward function @details calculate the reward function @return the reward
// return -(cost / powerProfile.size() * hoursWaited * 0.1);