Skip to content

odys.domain.entities.charger

EV charger with power rating and efficiency. Chargers are constraint entities that track which EV is connected and enforce power limits. They do not participate in the power balance.

Charger entity for electric vehicle charging stations.

This module provides the Charger class for modeling EV charging infrastructure in energy system optimization problems.

Charger

Bases: Asset

Represents an EV charger in the energy system.

Chargers are constraint entities that track which EV is connected and enforce power limits. They do not participate in the power balance.

Source code in src/odys/domain/entities/charger.py
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Charger(Asset):
    """Represents an EV charger in the energy system.

    Chargers are constraint entities that track which EV is connected
    and enforce power limits. They do not participate in the power balance.
    """

    max_power: float = Field(
        strict=True,
        gt=0,
        description="Maximum charging power in MW.",
    )
    # TODO: efficiency is not used by any constraint yet; model charger losses between grid and battery.
    efficiency: float = Field(
        default=1.0,
        strict=True,
        gt=0,
        le=1,
        description="Charger efficiency (0-1). Losses occur during charging/discharging.",
    )