eflips-depot 4.3.7__tar.gz → 4.3.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/PKG-INFO +1 -1
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/__init__.py +1 -2
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/depot.py +15 -9
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/pyproject.toml +1 -1
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/LICENSE.md +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/README.md +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/__init__.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/defaults/default_settings.json +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/private/__init__.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/private/depot.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/private/smart_charging.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/api/private/util.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/configuration.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/evaluation.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/filters.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/input_epex_power_price.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/__init__.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/doc/__init__.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/evaluation.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/packing.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/settings.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/template_creation.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/util.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/plots.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/processes.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/rating.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/resources.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/settings_config.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/simple_vehicle.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/simulation.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/smart_charging.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/standalone.py +0 -0
- {eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/validation.py +0 -0
|
@@ -809,7 +809,7 @@ def generate_realistic_depot_layout(
|
|
|
809
809
|
for (
|
|
810
810
|
first_last_stop_tup,
|
|
811
811
|
vehicle_type_rotation_dict,
|
|
812
|
-
) in
|
|
812
|
+
) in depot_stations_and_vehicle_types.items():
|
|
813
813
|
first_stop, last_stop = first_last_stop_tup
|
|
814
814
|
if first_stop != last_stop:
|
|
815
815
|
raise ValueError("First and last stop of a rotation are not the same.")
|
|
@@ -1005,7 +1005,6 @@ def vehicle_counts_for_direct_layout(
|
|
|
1005
1005
|
ret_val: Dict[Station, Dict[VehicleType, int]] = dict()
|
|
1006
1006
|
|
|
1007
1007
|
for depot_id_as_str, ev in depot_evaluations.items():
|
|
1008
|
-
ev = next(iter(depot_evaluations.values()))
|
|
1009
1008
|
assert isinstance(ev, DepotEvaluation)
|
|
1010
1009
|
counts: Dict[str, int] = real_peak_vehicle_count(ev)
|
|
1011
1010
|
# The key of the dictionary is the vehicle type ID as a string. We need to convert it to a vehicle type object
|
|
@@ -7,14 +7,14 @@ Created on Fri Oct 13 11:12:00 2017.
|
|
|
7
7
|
Core components of the depot simulation model.
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
from abc import ABC, abstractmethod
|
|
10
11
|
from collections import Counter
|
|
12
|
+
from warnings import warn
|
|
13
|
+
|
|
11
14
|
import simpy
|
|
12
|
-
from simpy.resources.store import StorePut
|
|
13
|
-
from simpy.core import BoundClass
|
|
14
|
-
from simpy.util import start_delayed
|
|
15
15
|
from eflips.evaluation import DataLogger
|
|
16
|
-
from eflips.settings import globalConstants
|
|
17
16
|
from eflips.helperFunctions import flexprint, SortedList
|
|
17
|
+
from eflips.settings import globalConstants
|
|
18
18
|
from eflips.simpy_ext import (
|
|
19
19
|
FilterStoreExt,
|
|
20
20
|
PositionalFilterStore,
|
|
@@ -26,18 +26,20 @@ from eflips.simpy_ext import (
|
|
|
26
26
|
LineFilterStoreGet,
|
|
27
27
|
ExclusiveRequest,
|
|
28
28
|
)
|
|
29
|
-
from
|
|
30
|
-
from
|
|
29
|
+
from simpy.core import BoundClass
|
|
30
|
+
from simpy.resources.store import StorePut
|
|
31
|
+
from simpy.util import start_delayed
|
|
32
|
+
|
|
33
|
+
from eflips.depot.evaluation import Departure, ProcessCalled
|
|
31
34
|
from eflips.depot.filters import VehicleFilter
|
|
35
|
+
from eflips.depot.processes import EstimateValue, ChargeAbstract, Precondition
|
|
32
36
|
from eflips.depot.rating import (
|
|
33
37
|
SlotAlternative,
|
|
34
38
|
ParkRating,
|
|
35
39
|
VehicleAlternative,
|
|
36
40
|
DispatchRating,
|
|
37
41
|
)
|
|
38
|
-
from eflips.depot.
|
|
39
|
-
from abc import ABC, abstractmethod
|
|
40
|
-
from warnings import warn
|
|
42
|
+
from eflips.depot.resources import DepotChargingInterface
|
|
41
43
|
|
|
42
44
|
|
|
43
45
|
class DepotWorkingData:
|
|
@@ -869,6 +871,10 @@ class DSSmart(BaseDispatchStrategy):
|
|
|
869
871
|
|
|
870
872
|
for parking_area_group in depot.parking_area_groups:
|
|
871
873
|
for area in parking_area_group.stores:
|
|
874
|
+
# Speedup: Skip empty areas
|
|
875
|
+
if not any(item is not None for item in area.items):
|
|
876
|
+
continue
|
|
877
|
+
|
|
872
878
|
if isinstance(area, LineArea):
|
|
873
879
|
# Add one vehicle at max. at Line area
|
|
874
880
|
rg = area.range_from_side(area.side_get_default)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py
RENAMED
|
File without changes
|
{eflips_depot-4.3.7 → eflips_depot-4.3.10}/eflips/depot/layout_opt/opt_tools/fitness_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|