profev/EVPark.py
def max_charge_power_calculator(self, charging_period):
        """
        Returns a dictionary "connections"
            keys: charger labels
            values: max charging power input to the connected car
        """

        connections = {}
        self.logger.info("evs : " + str(self.evs))
        self.logger.info("chargers : " + str(self.chargers))
        for key, charger in self.chargers.items():
            self.logger.debug(charger.get_dict())
            hosted_ev = charger.hosted_ev
            self.logger.info("ev " + str(hosted_ev) + " charger.soc " + str(charger.soc))
            if hosted_ev and not charger.soc == None:
                ev = self.evs[hosted_ev]
                battery_depth_of_discharge = (1 - charger.soc) * ev.battery_capacity * 3600  # max_charging_power_kw-sec

                charger_limit = charger.max_charging_power_kw
                car_limit = battery_depth_of_discharge / charging_period

                connections[key] = min(charger_limit, car_limit)

        return connections

        Returns a dictionary "connections"
            keys: charger labels
            values: max charging power input to the connected car
        
Returns a dictionary "connections"
keys: charger labels
values: max charging power input to the connected car
Returns a dictionary " connections " keys : charger labels values : max charging power input to the connected car
def max_charge_power_calculator(self, charging_period):
        connections = {}
        self.logger.info("evs : " + str(self.evs))
        self.logger.info("chargers : " + str(self.chargers))
        for key, charger in self.chargers.items():
            self.logger.debug(charger.get_dict())
            hosted_ev = charger.hosted_ev
            self.logger.info("ev " + str(hosted_ev) + " charger.soc " + str(charger.soc))
            if hosted_ev and not charger.soc == None:
                ev = self.evs[hosted_ev]
                battery_depth_of_discharge = (1 - charger.soc) * ev.battery_capacity * 3600  
                charger_limit = charger.max_charging_power_kw
                car_limit = battery_depth_of_discharge / charging_period
                connections[key] = min(charger_limit, car_limit)
        return connections
def max_charge_power_calculator ( self , charging_period ) : connections = { } self . logger . info ( "evs : " + str ( self . evs ) ) self . logger . info ( "chargers : " + str ( self . chargers ) ) for key , charger in self . chargers . items ( ) : self . logger . debug ( charger . get_dict ( ) ) hosted_ev = charger . hosted_ev self . logger . info ( "ev " + str ( hosted_ev ) + " charger.soc " + str ( charger . soc ) ) if hosted_ev and not charger . soc == None : ev = self . evs [ hosted_ev ] battery_depth_of_discharge = ( 1 - charger . soc ) * ev . battery_capacity * 3600 charger_limit = charger . max_charging_power_kw car_limit = battery_depth_of_discharge / charging_period connections [ key ] = min ( charger_limit , car_limit ) return connections
Returns a dictionary "connections"
keys: charger labels
values: max charging power input to the connected car
Returns a dictionary " connections " keys : charger labels values : max charging power input to the connected car
"""
        Returns a dictionary "connections"
            keys: charger labels
            values: max charging power input to the connected car
        """ # max_charging_power_kw-sec
self
charging_period