def storage_strategy_test4(area_test4, called): s = StorageStrategy(initial_soc=100, battery_capacity_kWh=2.1) s.owner = area_test4 s.area = area_test4 s.accept_offer = called return s
def storage_strategy_test6(area_test6, market_test6, called): s = StorageStrategy(initial_soc=41.67) s.owner = area_test6 s.area = area_test6 s.accept_offer = called s.offers.post(market_test6.trade.offer, market_test6.id) return s
def storage_strategy_test14(area_test14, called): s = StorageStrategy(initial_soc=50, battery_capacity_kWh=30, max_abs_battery_power_kW=10, initial_selling_rate=25, final_selling_rate=24, initial_buying_rate=0, final_buying_rate=23.9) s.owner = area_test14 s.area = area_test14 s.accept_offer = called return s
def storage_strategy_test13(area_test13, called): s = StorageStrategy(battery_capacity_kWh=5, max_abs_battery_power_kW=5, initial_selling_rate=35.1, final_selling_rate=35, initial_buying_rate=34, final_buying_rate=34) s.owner = area_test13 s.area = area_test13 s.accept_offer = called return s
def storage_strategy_test11(area_test11, called): s = StorageStrategy(battery_capacity_kWh=100, initial_soc=50, max_abs_battery_power_kW=1, initial_buying_rate=30, final_buying_rate=30, initial_selling_rate=33, final_selling_rate=32) s.owner = area_test11 s.area = area_test11 s.accept_offer = called return s
def storage_strategy_test1(area_test1, called): s = StorageStrategy(max_abs_battery_power_kW=2.01, initial_buying_rate=23.6, final_buying_rate=23.6, initial_selling_rate=23.7, final_selling_rate=23.7) s.owner = area_test1 s.area = area_test1 s.accept_offer = called return s
def storage_strategy_test11(area_test11, called): s = StorageStrategy(battery_capacity_kWh=100, initial_capacity_kWh=50, max_abs_battery_power_kW=1) s.owner = area_test11 s.area = area_test11 s.accept_offer = called return s
def storage_strategy_test13(area_test13, called): s = StorageStrategy(battery_capacity_kWh=5, initial_capacity_kWh=2.5, max_abs_battery_power_kW=5, break_even=(34, 35.1)) s.owner = area_test13 s.area = area_test13 s.accept_offer = called return s
def storage_strategy_test15(area_test15, called): s = StorageStrategy(initial_soc=50, battery_capacity_kWh=30, max_abs_battery_power_kW=10, initial_selling_rate=25, final_selling_rate=25, initial_buying_rate=24, final_buying_rate=24) s.owner = area_test15 s.area = area_test15 s.area.parent = deepcopy(area_test15) s.area.parent.name = "ParentArea" s.area.children = deepcopy([area_test15]) s.area.children[0].name = "ChildArea" s.accept_offer = called return s
def storage_strategy_test_buy_energy(area_test3, called): s = StorageStrategy(max_abs_battery_power_kW=20.01) s.owner = area_test3 s.area = area_test3 s.accept_offer = called return s
def storage_strategy_test2(area_test2, called): s = StorageStrategy(max_abs_battery_power_kW=2.01) s.owner = area_test2 s.area = area_test2 s.accept_offer = called return s