Skip to content

Commit

Permalink
test replacing the safety factor with a charging efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
brtietz committed Dec 9, 2022
1 parent faf015e commit ee4e71e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shared/lib_battery_dispatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ dispatch_automatic_t::dispatch_automatic_t(

_mode = dispatch_mode;
_weather_forecast_mode = weather_forecast_mode;
_safety_factor = 0.03;
_safety_factor = 0.0;

m_batteryPower->canClipCharge = can_clip_charge;
m_batteryPower->canSystemCharge = can_charge;
Expand Down
2 changes: 1 addition & 1 deletion shared/lib_battery_dispatch_automatic_btm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ void dispatch_automatic_behind_the_meter_t::target_power(double E_useful, size_t
if (sorted_grid[ii].Grid() > P_target_min)
break;

E_charge += (P_target_min - sorted_grid[ii].Grid())*_dt_hour;
E_charge += (P_target_min - sorted_grid[ii].Grid()) * _dt_hour * m_batteryPower->singlePointEfficiencyACToDC;
}
E_charge_vec.push_back(E_charge);
if (debug)
Expand Down

0 comments on commit ee4e71e

Please sign in to comment.