Skip to content

Commit 6800f48

Browse files
authored
Improve target function factor for early charging (evcc-io#30)
1 parent eb1f921 commit 6800f48

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

optimizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def _setup_target_function(self):
196196
if self.strategy.charging_strategy == 'charge_before_export':
197197
for i, bat in enumerate(self.batteries):
198198
for t in self.time_steps:
199-
objective += self.variables['c'][i][t] * self.min_import_price * 1e-6 * (self.T - t)
199+
objective += self.variables['c'][i][t] * self.min_import_price * 1.5e-5 * (self.T - t)
200200

201201
# prefer charging at high solar production times to unload public grid from peaks
202202
if self.strategy.charging_strategy == 'attenuate_grid_peaks':

0 commit comments

Comments
 (0)