Load calculation
Submodules
Load calculation
- class fleetrl.utils.load_calculation.load_calculation.CompanyType(value)[source]
Bases:
EnumAn enumeration.
- Caretaker = 2
- Custom = 4
- Delivery = 1
- Utility = 3
- class fleetrl.utils.load_calculation.load_calculation.LoadCalculation(env_config, company_type, max_load, num_cars)[source]
Bases:
objectThe Load Calculation class sets grid connection, and calculates load overloading
- check_violation(actions, there, building_load, pv)[source]
- Parameters:
actions (
list[float]) – Actions list, action for each EV [-1,1]there (
list[int]) – Flag is EV is plugged in or not [0;1]building_load (
float) – Current building load in kWpv (
float) – Current PV in kW
- Return type:
(
bool,float)- Returns: