eflips-depot 4.8.0__tar.gz → 4.9.0__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.
Potentially problematic release.
This version of eflips-depot might be problematic. Click here for more details.
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/PKG-INFO +1 -1
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/private/depot.py +1 -1
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/depot.py +30 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/pyproject.toml +1 -1
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/LICENSE.md +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/README.md +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/defaults/default_settings.json +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/private/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/private/consumption.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/private/results_to_database.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/api/private/util.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/configuration.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/evaluation.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/filters.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/input_epex_power_price.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/doc/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/doc/direct_details.pdf +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/evaluation.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/__init__.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/crossover.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/fitness_util.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/init.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/mutation.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/optimize_c_urfd.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/packing.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/settings.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/template_creation.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/util.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/plots.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/processes.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/rating.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/resources.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/settings_config.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/simple_vehicle.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/simulation.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/smart_charging.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/standalone.py +0 -0
- {eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/validation.py +0 -0
|
@@ -290,7 +290,7 @@ def depot_to_template(depot: Depot) -> Dict[str, str | Dict[str, str | int]]:
|
|
|
290
290
|
|
|
291
291
|
if process_type(process) == ProcessType.CHARGING:
|
|
292
292
|
template["groups"][group_name]["typename"] = "ParkingAreaGroup"
|
|
293
|
-
template["groups"][group_name]["parking_strategy_name"] = "
|
|
293
|
+
template["groups"][group_name]["parking_strategy_name"] = "LINEFIRST"
|
|
294
294
|
|
|
295
295
|
# Fill in locations of the plan
|
|
296
296
|
template["plans"]["default"]["locations"].append(group_name)
|
|
@@ -2224,6 +2224,35 @@ class PSFirst(BaseParkingStrategy):
|
|
|
2224
2224
|
return None
|
|
2225
2225
|
|
|
2226
2226
|
|
|
2227
|
+
class PSLineFirst(BaseParkingStrategy):
|
|
2228
|
+
name = "LINEFIRST"
|
|
2229
|
+
short_description = "first available (default)"
|
|
2230
|
+
tooltip = (
|
|
2231
|
+
"This strategy will try to park a vehicle on the first "
|
|
2232
|
+
"available\n line area with most vacant slot. If there are no available line area, "
|
|
2233
|
+
"assign to the area with most vacant slot."
|
|
2234
|
+
)
|
|
2235
|
+
|
|
2236
|
+
@staticmethod
|
|
2237
|
+
def determine_store(preselected_stores, *args, **kwargs):
|
|
2238
|
+
line_area_in_stores = []
|
|
2239
|
+
|
|
2240
|
+
for store in preselected_stores:
|
|
2241
|
+
if store.vacant_accessible and type(store).__name__ == "LineArea":
|
|
2242
|
+
line_area_in_stores.append(store)
|
|
2243
|
+
|
|
2244
|
+
if line_area_in_stores:
|
|
2245
|
+
sorted(line_area_in_stores, key=lambda x: x.vacant_accessible, reverse=True)
|
|
2246
|
+
return line_area_in_stores[0]
|
|
2247
|
+
|
|
2248
|
+
else:
|
|
2249
|
+
sorted(preselected_stores, key=lambda x: x.vacant_accessible, reverse=True)
|
|
2250
|
+
if preselected_stores[0].vacant_accessible:
|
|
2251
|
+
return preselected_stores[0]
|
|
2252
|
+
|
|
2253
|
+
return None
|
|
2254
|
+
|
|
2255
|
+
|
|
2227
2256
|
class PSEven(BaseParkingStrategy):
|
|
2228
2257
|
name = "EVEN"
|
|
2229
2258
|
short_description = "even"
|
|
@@ -2574,6 +2603,7 @@ class ParkingAreaGroup(AreaGroup):
|
|
|
2574
2603
|
PSMixed.name: PSMixed,
|
|
2575
2604
|
PSSmart.name: PSSmart,
|
|
2576
2605
|
PSSmart2.name: PSSmart2,
|
|
2606
|
+
PSLineFirst.name: PSLineFirst,
|
|
2577
2607
|
}
|
|
2578
2608
|
|
|
2579
2609
|
def __init__(self, env, stores, ID, parking_strategy_name="FIRST"):
|
|
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
|
|
File without changes
|
{eflips_depot-4.8.0 → eflips_depot-4.9.0}/eflips/depot/layout_opt/opt_tools/fitness_c_urfd.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
|
|
File without changes
|