Skip to content

Commit

Permalink
fixed fuel price config bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SongminYu committed Jan 9, 2024
1 parent b9b7f8b commit b524b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/operation/model_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def config_prices(self, instance):
if self.scenario.boiler.type not in ['Air_HP', 'Ground_HP', "Electric"]:
instance.FuelPrice[t] = self.scenario.energy_price.__dict__[self.scenario.boiler.type][t - 1]
else:
instance.FuelPrice[t] = self.scenario.energy_price.gases[t - 1]
instance.FuelPrice[t] = 0

def config_grid(self, instance):
for t in range(1, 8761):
Expand Down

0 comments on commit b524b56

Please sign in to comment.