echo.models.electrical.ev.v0g module
- class echo.models.electrical.ev.v0g.EVV0G(uid: str = NOTHING, node_name: str = NOTHING, objective: en.numeric_expr.NumericExpression | float = 0, transformations: dict[str, Transform] = NOTHING, charge_mode: EVChargeMode | None = None, connection_port_name: str = 'cp', ports: dict[str, ElectricalDemand | ElectricalPort | MobileElectricalStorage] = NOTHING, charging_efficiency: float = 1, depth_of_discharge_limit: float = 0, discharging_efficiency: float = 1, enable_trip_slack: bool = False, soc_conserv: float | list[float] | list[list[float]] | ndarray | None = None, soc_conserv_cost: float | None = None, usage_power_limit: float | None = None, available: ndarray | list | None = None, initial_state_of_charge: float | None = None, interval_duration: int | None = None, set_stateful_attrs_at_init: bool = True, tod_charging: ndarray | list | str | None = None, usage: ndarray | list | None = None, port_dict_name_to_port_name_map: dict[str, str] | None = None, port_dict_name_to_port_uid_map: dict[str, str] | None = None, V0G_delta: ndarray | list | None = None, V0G_SOC: ndarray | list | None = None, V0G_trip_infeasibility: ndarray | list | None = None, charge_status: EVChargeStatus | None = None, *, charging_power_limit: float, discharging_power_limit: float, max_capacity: float)
Bases:
EVBaseThis EV object takes an available and usage dataset to precalculate a demand profile.
Once plugged in for charging, it assumes charging at the maximum rate until the battery is full.
- V0G_SOC: ndarray | list | None
- V0G_delta: ndarray | list | None
- V0G_trip_infeasibility: ndarray | list | None
- add_node_to_model(model: EchoConcreteModel, profile: DataFrame | None = None) None
Fix the battery state of charge, the slack variable, and battery charging/discharging for EV.
- Parameters:
model – The concrete model to add the EV to
profile
- Returns:
None
- charge_status: EVChargeStatus | None
- set_stateful_attrs(available: ndarray | list, usage: ndarray | list, initial_state_of_charge: float, interval_duration: int, tod_charging: ndarray | list | str | None = None) None
Injects attributes with state into EV node and ports.
- Parameters:
available – A List or ArrayType of bools representing the ability for the EV to charge. The bools can have values of [False, True] or [0, 1]. 0 and False indicate the EV is not available for charging, 1 and True indicate the EV is available for charging.
usage – An array representing the average power consumption from driving of the EV during a time interval. Units of power.
initial_state_of_charge – The initial charge present in the EV’s battery. Positive float of energy units, not percentage. Positive float with units of energy.
interval_duration – The duration between timestamps. Units of minutes.
tod_charging – Time of day charging allows the EV to charge only during certain time windows (1=allowed, 0=not allowed). Most commonly used with V0G charging. Defaults to None.
- Returns:
None