Example #1
0
def get_setup(config):
    GlobalConfig.POWER_FLOW = True
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load',
                         strategy=LoadHoursStrategy(avg_power_W=200,
                                                    hrs_per_day=6,
                                                    hrs_of_day=list(
                                                        range(12, 18)),
                                                    final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage1',
                         strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage2',
                         strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                ],
                grid_fee_percentage=0,
                grid_fee_constant=0,
            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load',
                         strategy=LoadHoursStrategy(avg_power_W=200,
                                                    hrs_per_day=4,
                                                    hrs_of_day=list(
                                                        range(12, 16)),
                                                    final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H2 PV',
                         strategy=PVStrategy(panel_count=4,
                                             initial_selling_rate=30,
                                             final_selling_rate=5,
                                             max_panel_power_W=100),
                         appliance=PVAppliance()),
                ],
                grid_fee_percentage=0,
                grid_fee_constant=0,
            ),
            Area('Cell Tower',
                 strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                     hrs_per_day=24,
                                                     hrs_of_day=list(
                                                         range(0, 24)),
                                                     final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            Area('DSO',
                 strategy=InfiniteBusStrategy(energy_buy_rate=10,
                                              energy_sell_rate=30),
                 appliance=SimpleAppliance()),
        ],
        config=config,
    )
    return area
def get_setup(config):
    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=6,
                                            hrs_of_day=list(range(12, 18)),
                                            max_energy_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=CustomStorageStrategy(initial_capacity_kWh=0.6),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16)),
                                            max_energy_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H2 PV', strategy=PVStrategy(4, 80), appliance=PVAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 max_energy_rate=35),
             appliance=SwitchableAppliance())
    ],
                config=config)
    return area
Example #3
0
def get_setup(config):
    ConstSettings.IAASettings.MARKET_TYPE = 2
    ConstSettings.GeneralSettings.EXPORT_OFFER_BID_TRADE_HR = True

    area = Area('Grid', [
        Area('House 1', [
            Area('H1 Storage1',
                 strategy=StorageStrategy(initial_soc=100,
                                          min_allowed_soc=10,
                                          battery_capacity_kWh=1.2,
                                          max_abs_battery_power_kW=5,
                                          initial_selling_rate=30,
                                          final_buying_rate=25,
                                          final_selling_rate=25.1,
                                          initial_buying_rate=0,
                                          fit_to_limit=True,
                                          update_interval=1),
                 appliance=SwitchableAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=30,
                                                 fit_to_limit=True,
                                                 update_interval=3),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #4
0
def get_setup(config):
    area = Area('Grid', [
        Area(
            'House 1',
            [
                Area('H1 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_soc=100,
                                              battery_capacity_kWh=20),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageExternalStrategy(initial_soc=100,
                                                      battery_capacity_kWh=20),
                     appliance=SwitchableAppliance()),
            ],
        ),
        Area(
            'House 2',
            [
                Area('Green Load 1',
                     strategy=LoadHoursExternalStrategy(avg_power_W=200,
                                                        hrs_per_day=24,
                                                        hrs_of_day=list(
                                                            range(0, 24)),
                                                        final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('Green Load 5',
                     strategy=LoadHoursExternalStrategy(avg_power_W=200,
                                                        hrs_per_day=20,
                                                        hrs_of_day=list(
                                                            range(2, 22)),
                                                        final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('Green PV 1',
                     strategy=PVExternalStrategy(panel_count=4),
                     appliance=PVAppliance()),
                Area('Green Storage 1',
                     strategy=StorageExternalStrategy(
                         initial_soc=50,
                         min_allowed_soc=10,
                         battery_capacity_kWh=5,
                         max_abs_battery_power_kW=4),
                     appliance=SwitchableAppliance()),
            ],
            external_connection_available=True,
        ),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #5
0
def get_setup(config):
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load',
                         strategy=LoadHoursStrategy(avg_power_W=200,
                                                    hrs_per_day=6,
                                                    hrs_of_day=list(
                                                        range(12, 18)),
                                                    final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage1',
                         strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage2',
                         strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                ],
                transfer_fee_pct=0,
                transfer_fee_const=0,
            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load',
                         strategy=LoadHoursStrategy(avg_power_W=200,
                                                    hrs_per_day=4,
                                                    hrs_of_day=list(
                                                        range(12, 16)),
                                                    final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H2 PV',
                         strategy=PVStrategy(panel_count=4,
                                             initial_selling_rate=30,
                                             final_selling_rate=5),
                         appliance=PVAppliance()),
                ],
                transfer_fee_pct=0,
                transfer_fee_const=0,
            ),
            Area('Cell Tower',
                 strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                     hrs_per_day=24,
                                                     hrs_of_day=list(
                                                         range(0, 24)),
                                                     final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_rate=30),
            #      appliance=SimpleAppliance()
            #      ),
        ],
        config=config)
    return area
Example #6
0
def get_setup(config):
    ConstSettings.GeneralSettings.DEFAULT_UPDATE_INTERVAL = 5
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=6,
                                                                       hrs_of_day=list(
                                                                           range(12, 18)),
                                                                       final_buying_rate=25),
                         appliance=SwitchableAppliance(), grid_fee_percentage=0),
                    Area('H1 Storage1', strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance(), grid_fee_percentage=0),
                    Area('H1 Storage2', strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance(), grid_fee_percentage=0),
                ],
                grid_fee_percentage=0, transfer_fee_const=0,

            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=4,
                                                                       hrs_of_day=list(
                                                                           range(12, 16)),
                                                                       final_buying_rate=35),
                         appliance=SwitchableAppliance(), grid_fee_percentage=0),
                    Area('H2 PV', strategy=PVStrategy(10),
                         appliance=PVAppliance(), grid_fee_percentage=0),

                ],
                grid_fee_percentage=0, transfer_fee_const=0,

            ),
            Area('Cell Tower', strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                                   hrs_per_day=24,
                                                                   hrs_of_day=list(range(0, 24)),
                                                                   final_buying_rate=35),
                 appliance=SwitchableAppliance(), grid_fee_percentage=0)
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_range_wh=(40, 120), energy_price=30),
            #      appliance=SimpleAppliance()
            #      ),

        ],
        config=config
    )
    return area
Example #7
0
def get_setup(config):

    ConstSettings.IAASettings.MARKET_TYPE = 2
    ConstSettings.LoadSettings.INITIAL_BUYING_RATE = 35
    ConstSettings.LoadSettings.FINAL_BUYING_RATE = 35
    ConstSettings.StorageSettings.INITIAL_BUYING_RATE = 24.99
    ConstSettings.StorageSettings.FINAL_BUYING_RATE = 25
    ConstSettings.StorageSettings.INITIAL_SELLING_RATE = 30
    ConstSettings.StorageSettings.FINAL_SELLING_RATE = 25.01

    area = Area(
        'Grid',
        [
            Area('House 1', [
                Area('H1 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=100,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageStrategy(),
                     appliance=SwitchableAppliance())
            ]),
            Area('House 2', [
                Area('H2 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=100,
                                                hrs_per_day=4,
                                                hrs_of_day=list(range(12, 16)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H2 PV', strategy=PVStrategy(4), appliance=PVAppliance()),
            ]),
            Area('Cell Tower',
                 strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                     hrs_per_day=24,
                                                     hrs_of_day=list(
                                                         range(0, 24)),
                                                     final_buying_rate=35),
                 appliance=SwitchableAppliance())
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_range_wh=(40, 120), energy_price=30),
            #      appliance=SimpleAppliance()
            #      ),
        ],
        config=config)
    return area
Example #8
0
def get_setup(config):
    DeviceRegistry.REGISTRY = device_registry_dict
    ConstSettings.BalancingSettings.ENABLE_BALANCING_MARKET = True
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=6,
                                                                       hrs_of_day=list(
                                                                           range(12, 18)),
                                                                       max_energy_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage1', strategy=StorageStrategy(initial_capacity_kWh=0.6),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage2', strategy=StorageStrategy(initial_capacity_kWh=0.6),
                         appliance=SwitchableAppliance()),
                ]
            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=4,
                                                                       hrs_of_day=list(
                                                                           range(12, 16)),
                                                                       max_energy_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H2 PV', strategy=PVStrategy(4, 80),
                         appliance=PVAppliance()),

                ]
            ),
            Area('Cell Tower', strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                                   hrs_per_day=24,
                                                                   hrs_of_day=list(range(0, 24)),
                                                                   max_energy_rate=35),
                 appliance=SwitchableAppliance()),
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_rate=30),
            #      appliance=SimpleAppliance()
            #      ),

        ],
        config=config
    )
    return area
Example #9
0
def get_setup(config):

    ConstSettings.IAASettings.MARKET_TYPE = 3
    # ConstSettings.GeneralSettings.SUPPLY_DEMAND_PLOTS = False
    ConstSettings.GeneralSettings.MARKET_CLEARING_FREQUENCY_PER_SLOT = 3
    ConstSettings.LoadSettings.INITIAL_BUYING_RATE = 35
    ConstSettings.LoadSettings.FINAL_BUYING_RATE = 35
    ConstSettings.StorageSettings.INITIAL_BUYING_RATE = 24.99
    ConstSettings.StorageSettings.FINAL_BUYING_RATE = 25
    ConstSettings.StorageSettings.INITIAL_SELLING_RATE = 30
    ConstSettings.StorageSettings.FINAL_SELLING_RATE = 25.01

    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=6,
                                            hrs_of_day=list(range(12, 18)),
                                            initial_buying_rate=35,
                                            final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage2',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16)),
                                            final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H2 PV', strategy=PVStrategy(4), appliance=PVAppliance()),
            Area('H2 CEP',
                 strategy=CommercialStrategy(energy_rate=10),
                 appliance=SimpleAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #10
0
def get_setup(config):
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=6,
                                                                       hrs_of_day=list(
                                                                           range(12, 18)),
                                                                       max_energy_rate=25),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage1', strategy=StorageStrategy(initial_capacity_kWh=0.6),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage2', strategy=StorageStrategy(initial_capacity_kWh=0.6),
                         appliance=SwitchableAppliance()),
                ]
            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=4,
                                                                       hrs_of_day=list(
                                                                           range(12, 16)),
                                                                       max_energy_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H2 PV', strategy=PVStrategy(4, 80),
                         appliance=PVAppliance()),

                ]
            ),
            Area('Cell Tower', strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                                   hrs_per_day=24,
                                                                   hrs_of_day=list(range(0, 24)),
                                                                   max_energy_rate=35),
                 appliance=SwitchableAppliance())
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_range_wh=(40, 120), energy_price=30),
            #      appliance=SimpleAppliance()
            #      ),

        ],
        config=config
    )
    return area
Example #11
0
def get_setup(config):
    ConstSettings.GeneralSettings.EVENT_DISPATCHING_VIA_REDIS = True
    area = Area('Grid', [
        Area(
            'House 1',
            [
                Area('H1 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=18,
                                                hrs_of_day=list(range(0, 18)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_soc=100),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageStrategy(initial_soc=100),
                     appliance=SwitchableAppliance()),
            ],
            grid_fee_percentage=0,
            grid_fee_constant=0,
        ),
        Area(
            'House 2',
            [
                Area('H2 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=24,
                                                hrs_of_day=list(range(0, 24)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H2 PV',
                     strategy=PVStrategy(4, 80),
                     appliance=PVAppliance()),
            ],
            grid_fee_percentage=0,
            grid_fee_constant=0,
        ),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #12
0
def get_setup(config):
    area = Area('Grid', [
        Area('Street', [
            Area('House 1', [
                Area('H1 General Load 1',
                     strategy=LoadHoursStrategy(avg_power_W=500,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=25),
                     appliance=SwitchableAppliance()),
                Area('H1 General Load 2',
                     strategy=LoadHoursStrategy(avg_power_W=500,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=25),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
            ]),
            Area('House 2', [
                Area('H2 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=500,
                                                hrs_per_day=4,
                                                hrs_of_day=list(range(12, 16)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H2 PV',
                     strategy=PVStrategy(1, 80),
                     appliance=PVAppliance()),
            ]),
            Area('Cell Tower',
                 strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                     hrs_of_day=list(
                                                         range(20, 24)),
                                                     final_buying_rate=35),
                 appliance=SwitchableAppliance())
        ])
    ],
                config=config)
    return area
Example #13
0
def get_setup(config):
    DeviceRegistry.REGISTRY = device_registry_dict
    ConstSettings.BalancingSettings.ENABLE_BALANCING_MARKET = True
    area = Area(
        'Grid',
        [
            Area(
                'House 1',
                [
                    Area('H1 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=6,
                                                                       hrs_of_day=list(
                                                                           range(0, 18)),
                                                                       final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage1', strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                    Area('H1 Storage2', strategy=StorageStrategy(initial_soc=50),
                         appliance=SwitchableAppliance()),
                ]
            ),
            Area(
                'House 2',
                [
                    Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                       hrs_per_day=4,
                                                                       hrs_of_day=list(
                                                                           range(12, 16)),
                                                                       final_buying_rate=35),
                         appliance=SwitchableAppliance()),
                    Area('H2 PV', strategy=PVStrategy(4, 80),
                         appliance=PVAppliance()),

                ]
            ),
            Area('Cell Tower', strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                                   hrs_per_day=24,
                                                                   hrs_of_day=list(range(0, 24)),
                                                                   final_buying_rate=35),
                 appliance=SwitchableAppliance())
        ],
        config=config
    )
    return area
Example #14
0
def get_setup(config):
    area = Area(
        'Grid',
        [
            Area('House 1', [
                Area('H1 General Load',
                     strategy=DefinedLoadStrategy(
                         daily_load_profile=os.path.join(
                             d3a_path, 'resources', 'LOAD_DATA_1.csv'),
                         max_energy_rate=25),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_capacity_kWh=0.6),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageStrategy(initial_capacity_kWh=0.6),
                     appliance=SwitchableAppliance()),
            ]),
            Area('House 2', [
                Area('H2 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=4,
                                                hrs_of_day=list(range(12, 16)),
                                                max_energy_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H2 PV',
                     strategy=PVPredefinedStrategy(90, 5, cloud_coverage=0),
                     appliance=PVAppliance()),
            ]),
            Area('Cell Tower',
                 strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                     hrs_per_day=24,
                                                     hrs_of_day=list(
                                                         range(0, 24)),
                                                     max_energy_rate=35),
                 appliance=SwitchableAppliance())
            # Area('Commercial Energy Producer',
            #      strategy=CommercialStrategy(energy_range_wh=(40, 120), energy_price=30),
            #      appliance=SimpleAppliance()
            #      ),
        ],
        config=config)
    return area
Example #15
0
def get_setup(config):
    area = Area('Grid', [
        Area(
            'House 1',
            [
                Area('H1 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=StorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage2',
                     strategy=StorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
            ],
        ),
        Area(
            'House 2',
            [
                Area('load',
                     strategy=LoadHoursExternalStrategy(avg_power_W=200,
                                                        hrs_per_day=24,
                                                        hrs_of_day=list(
                                                            range(0, 24)),
                                                        final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('pv',
                     strategy=PVExternalStrategy(panel_count=4),
                     appliance=PVAppliance()),
            ],
        ),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #16
0
def get_setup(config):
    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=6,
                                            hrs_of_day=list(range(12, 18)),
                                            final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=StorageStrategy(
                     initial_soc=50,
                     final_buying_rate=final_buying_rate_profile,
                     final_selling_rate=final_selling_rate_profile,
                     max_abs_battery_power_kW=5.0),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage2',
                 strategy=StorageStrategy(
                     initial_soc=50,
                     final_buying_rate=final_buying_rate_profile_2,
                     final_selling_rate=final_selling_rate_profile_2,
                     max_abs_battery_power_kW=5.0),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16)),
                                            final_buying_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H2 PV', strategy=PVStrategy(4), appliance=PVAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
def get_setup(config):
    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=6,
                                            hrs_of_day=list(range(12, 18)),
                                            max_energy_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=StorageStrategy(risk=10,
                                          initial_capacity_kWh=0.6,
                                          break_even=break_even_profile,
                                          max_abs_battery_power_kW=5.0),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage2',
                 strategy=StorageStrategy(risk=10,
                                          initial_capacity_kWh=0.6,
                                          break_even=break_even_profile_2,
                                          max_abs_battery_power_kW=5.0),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16)),
                                            max_energy_rate=35),
                 appliance=SwitchableAppliance()),
            Area('H2 PV',
                 strategy=PVStrategy(4, 10, initial_rate_option=2),
                 appliance=PVAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 max_energy_rate=35),
             appliance=SwitchableAppliance()),
    ],
                config=config)
    return area
Example #18
0
def get_setup(config):
    area = Area('Grid', [
        Area(
            'House 1',
            [
                Area('H1 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=6,
                                                hrs_of_day=list(range(12, 18)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H1 Storage1',
                     strategy=CustomStorageStrategy(initial_soc=50),
                     appliance=SwitchableAppliance()),
            ],
            transfer_fee_pct=0,
        ),
        Area(
            'House 2',
            [
                Area('H2 General Load',
                     strategy=LoadHoursStrategy(avg_power_W=200,
                                                hrs_per_day=4,
                                                hrs_of_day=list(range(12, 16)),
                                                final_buying_rate=35),
                     appliance=SwitchableAppliance()),
                Area('H2 PV', strategy=PVStrategy(4), appliance=PVAppliance()),
            ],
            transfer_fee_pct=0,
        ),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=35),
             appliance=SwitchableAppliance())
    ],
                config=config)
    return area
Example #19
0
def get_setup(config):
    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 20)),
                                            final_buying_rate=29),
                 appliance=SwitchableAppliance()),
            Area('H1 Lighting',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16))),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage2',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=3,
                                            hrs_of_day=list(range(12, 18)),
                                            final_buying_rate=50),
                 appliance=SwitchableAppliance()),
            Area('H2 Lighting',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16))),
                 appliance=SwitchableAppliance()),
            Area('H2 PV', strategy=PVStrategy(2, 80), appliance=PVAppliance()),
        ]),
        Area('House 3', [
            Area('H3 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=1,
                                            hrs_of_day=list(range(12, 13))),
                 appliance=SwitchableAppliance()),
            Area('H3 Lighting',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16))),
                 appliance=SwitchableAppliance()),
            Area('H3 PV', strategy=PVStrategy(4, 60), appliance=PVAppliance()),
        ]),
        Area('House 4', [
            Area('H4 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=1,
                                            hrs_of_day=list(range(12, 13))),
                 appliance=SwitchableAppliance()),
            Area('H4 Lighting',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16))),
                 appliance=SwitchableAppliance()),
            Area('H4 TV',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(14, 18))),
                 appliance=SwitchableAppliance()),
            Area('H4 PV', strategy=PVStrategy(4, 60), appliance=PVAppliance()),
            Area('H4 Storage1',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
            Area('H4 Storage2',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
        ]),
        Area('House 5', [
            Area('H5 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=1,
                                            hrs_of_day=list(range(12, 13))),
                 appliance=SwitchableAppliance()),
            Area('H5 Lighting',
                 strategy=LoadHoursStrategy(avg_power_W=200,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16))),
                 appliance=SwitchableAppliance()),
            Area('H5 TV',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(10, 15))),
                 appliance=SwitchableAppliance()),
            Area('H5 PV', strategy=PVStrategy(5, 60), appliance=PVAppliance()),
            Area('H5 Storage1',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
            Area('H5 Storage2',
                 strategy=StorageStrategy(initial_soc=50),
                 appliance=SwitchableAppliance()),
        ]),
        Area('Commercial Energy Producer',
             strategy=CommercialStrategy(energy_rate=30),
             appliance=SimpleAppliance()),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0,
                                                                       24))),
             appliance=SwitchableAppliance())
    ],
                config=config)
    return area
Example #20
0
def get_setup(config):
    area = Area(
        'Grid',
        [
            Area(
                'Street 1',
                [
                    Area(
                        'House 1',
                        [
                            Area('H1 General Load 1', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                                 hrs_per_day=23,
                                                                                 hrs_of_day=list(
                                                                                   range(0, 23))),
                                 appliance=SwitchableAppliance()),
                            Area('H1 General Load 2', strategy=LoadHoursStrategy(avg_power_W=500,
                                                                                 hrs_per_day=23,
                                                                                 hrs_of_day=list(
                                                                                   range(0, 23))),
                                 appliance=SwitchableAppliance()),
                        ]
                    ),
                    Area(
                        'House 2',
                        [
                            Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                               hrs_per_day=23,
                                                                               hrs_of_day=list(
                                                                                   range(0, 23))),
                                 appliance=SwitchableAppliance()),
                            Area('H2 PV', strategy=PVStrategy(2, 80),
                                 appliance=PVAppliance()),
                        ]
                    ),
                ]
            ),
            Area(
                'Street 2',
                [
                    Area(
                        'House 3',
                        [
                            Area('H3 Storage',
                                 strategy=StorageStrategy(risk=10,
                                                          initial_capacity_kWh=0.6,
                                                          break_even=(26.99, 27.01),
                                                          max_abs_battery_power_kW=5.0),
                                 appliance=SwitchableAppliance()),
                        ]
                    ),
                    Area(
                        'House 4',
                        [
                            Area('H4 Storage',
                                 strategy=StorageStrategy(risk=10,
                                                          initial_capacity_kWh=0.6,
                                                          break_even=(26.99, 27.01),
                                                          max_abs_battery_power_kW=5.0),
                                 appliance=SwitchableAppliance()),
                            Area('H2 General Load', strategy=LoadHoursStrategy(avg_power_W=200,
                                                                               hrs_per_day=23,
                                                                               hrs_of_day=list(
                                                                                   range(0, 23))),
                                 appliance=SwitchableAppliance()),

                        ]
                    ),
                    Area('Commercial Energy Producer',
                         strategy=CommercialStrategy(energy_rate=31),
                         appliance=SimpleAppliance()),
                    Area('Cell Tower', strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                         hrs_per_day=24, hrs_of_day=list(range(0, 24)), max_energy_rate=30),
                         appliance=SwitchableAppliance())
                ]
            ),
        ],
        config=config
    )
    return area
def get_setup(config):
    ConstSettings.IAASettings.MARKET_TYPE = 2
    ConstSettings.GeneralSettings.EXPORT_ENERGY_TRADE_PROFILE_HR = True
    ConstSettings.GeneralSettings.EXPORT_OFFER_BID_TRADE_HR = True

    area = Area('Grid', [
        Area('House 1', [
            Area('H1 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=6,
                                            hrs_of_day=list(range(12, 18)),
                                            final_buying_rate=30,
                                            fit_to_limit=True,
                                            update_interval=1),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage1',
                 strategy=StorageStrategy(initial_soc=50,
                                          min_allowed_soc=10,
                                          battery_capacity_kWh=1.2,
                                          max_abs_battery_power_kW=5,
                                          initial_selling_rate=30,
                                          final_buying_rate=25,
                                          final_selling_rate=25.1,
                                          initial_buying_rate=0,
                                          fit_to_limit=True,
                                          update_interval=1),
                 appliance=SwitchableAppliance()),
            Area('H1 Storage2',
                 strategy=StorageStrategy(initial_soc=10,
                                          min_allowed_soc=10,
                                          battery_capacity_kWh=1.2,
                                          max_abs_battery_power_kW=5,
                                          initial_selling_rate=31,
                                          final_buying_rate=25,
                                          final_selling_rate=25.1,
                                          initial_buying_rate=5,
                                          fit_to_limit=True,
                                          update_interval=1),
                 appliance=SwitchableAppliance())
        ]),
        Area('House 2', [
            Area('H2 General Load',
                 strategy=LoadHoursStrategy(avg_power_W=100,
                                            hrs_per_day=4,
                                            hrs_of_day=list(range(12, 16)),
                                            final_buying_rate=30,
                                            fit_to_limit=True,
                                            update_interval=1),
                 appliance=SwitchableAppliance()),
            Area('H2 PV',
                 strategy=PVStrategy(4,
                                     initial_selling_rate=30,
                                     final_selling_rate=0,
                                     fit_to_limit=True,
                                     update_interval=1),
                 appliance=PVAppliance()),
        ]),
        Area('Cell Tower',
             strategy=CellTowerLoadHoursStrategy(avg_power_W=100,
                                                 hrs_per_day=24,
                                                 hrs_of_day=list(range(0, 24)),
                                                 final_buying_rate=30,
                                                 fit_to_limit=True,
                                                 update_interval=1),
             appliance=SwitchableAppliance()),
        Area('Market Maker',
             strategy=MarketMakerStrategy(energy_rate=30, grid_connected=True),
             appliance=SimpleAppliance()),
    ],
                config=config)
    return area