Commit 70600158 authored by Stefan Dähling's avatar Stefan Dähling
Browse files

minor fix in ev op range

parent 1e3624e7
...@@ -603,7 +603,7 @@ void Swarm_prosumer_behavior::determine_operation_range_ev(double v_norm, double ...@@ -603,7 +603,7 @@ void Swarm_prosumer_behavior::determine_operation_range_ev(double v_norm, double
double p_min_temp = 0.0; double p_min_temp = 0.0;
double t_earlier = prosumer_data->t_connected - 3600 * 2; double t_earlier = prosumer_data->t_connected - 3600 * 2;
if (t_earlier > 3600 * 2) { if (t_earlier > 3600 * 2) {
p_min_temp = prosumer_data->P_min = E_lack * 3600 / t_earlier; p_min_temp = E_lack * 3600 / t_earlier;
} }
else { else {
p_min_temp = 2*prosumer_data->P_min; p_min_temp = 2*prosumer_data->P_min;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment