nextroute 1.8.1__tar.gz → 1.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 nextroute might be problematic. Click here for more details.
- {nextroute-1.8.1/src/nextroute.egg-info → nextroute-1.9.0}/PKG-INFO +2 -2
- {nextroute-1.8.1 → nextroute-1.9.0}/README.md +1 -1
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/__about__.py +1 -1
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/bin/nextroute.exe +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/input.py +24 -3
- {nextroute-1.8.1 → nextroute-1.9.0/src/nextroute.egg-info}/PKG-INFO +2 -2
- {nextroute-1.8.1 → nextroute-1.9.0}/LICENSE +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/pyproject.toml +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/setup.cfg +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/setup.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/__init__.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/base_model.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/check/__init__.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/check/schema.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/options.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/__init__.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/location.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/output.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/statistics.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/stop.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/schema/vehicle.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/solve.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute/version.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute.egg-info/SOURCES.txt +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute.egg-info/dependency_links.txt +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute.egg-info/requires.txt +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/nextroute.egg-info/top_level.txt +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/tests/schema/__init__.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/tests/schema/test_input.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/tests/schema/test_output.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/tests/solve_golden/__init__.py +0 -0
- {nextroute-1.8.1 → nextroute-1.9.0}/src/tests/solve_golden/main.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nextroute
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: Nextroute is an engine for solving Vehicle Routing Problems (VRPs).
|
|
5
5
|
Author-email: Nextmv <tech@nextmv.io>
|
|
6
6
|
Maintainer-email: Nextmv <tech@nextmv.io>
|
|
@@ -197,7 +197,7 @@ file.
|
|
|
197
197
|
|
|
198
198
|
For further information on how to get started, features, deployment, etc.,
|
|
199
199
|
please refer to the [official
|
|
200
|
-
documentation](https://www.nextmv.io/docs/vehicle-routing).
|
|
200
|
+
documentation](https://www.nextmv.io/docs/vehicle-routing/get-started).
|
|
201
201
|
|
|
202
202
|
### Go
|
|
203
203
|
|
|
@@ -86,7 +86,7 @@ file.
|
|
|
86
86
|
|
|
87
87
|
For further information on how to get started, features, deployment, etc.,
|
|
88
88
|
please refer to the [official
|
|
89
|
-
documentation](https://www.nextmv.io/docs/vehicle-routing).
|
|
89
|
+
documentation](https://www.nextmv.io/docs/vehicle-routing/get-started).
|
|
90
90
|
|
|
91
91
|
### Go
|
|
92
92
|
|
|
Binary file
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
Defines the input class.
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from datetime import datetime
|
|
8
|
+
from typing import Any, List, Optional, Union
|
|
8
9
|
|
|
9
10
|
from nextroute.base_model import BaseModel
|
|
10
11
|
from nextroute.schema.stop import AlternateStop, Stop, StopDefaults
|
|
@@ -29,6 +30,26 @@ class DurationGroup(BaseModel):
|
|
|
29
30
|
group: List[str]
|
|
30
31
|
"""Stop IDs contained in the group."""
|
|
31
32
|
|
|
33
|
+
class MatrixTimeFrame(BaseModel):
|
|
34
|
+
"""Represents a time-dependent duration matrix or scaling factor."""
|
|
35
|
+
start_time: datetime
|
|
36
|
+
"""Start time of the time frame."""
|
|
37
|
+
end_time: datetime
|
|
38
|
+
"""End time of the time frame."""
|
|
39
|
+
matrix: Optional[List[List[float]]] = None
|
|
40
|
+
"""Duration matrix for the time frame."""
|
|
41
|
+
scaling_factor: Optional[float] = None
|
|
42
|
+
"""Scaling factor for the time frame."""
|
|
43
|
+
|
|
44
|
+
class TimeDependentMatrix(BaseModel):
|
|
45
|
+
"""Represents time-dependent duration matrices."""
|
|
46
|
+
vehicle_ids: Optional[List[str]] = None
|
|
47
|
+
"""Vehicle IDs for which the duration matrix is defined."""
|
|
48
|
+
default_matrix: List[List[float]]
|
|
49
|
+
"""Default duration matrix."""
|
|
50
|
+
matrix_time_frames: Optional[List[MatrixTimeFrame]] = None
|
|
51
|
+
"""Time-dependent duration matrices."""
|
|
52
|
+
|
|
32
53
|
|
|
33
54
|
class Input(BaseModel):
|
|
34
55
|
"""Input schema for Nextroute."""
|
|
@@ -48,8 +69,8 @@ class Input(BaseModel):
|
|
|
48
69
|
"""Matrix of travel distances in meters between stops."""
|
|
49
70
|
duratrion_groups: Optional[List[DurationGroup]] = None
|
|
50
71
|
"""Duration in seconds added when approaching the group."""
|
|
51
|
-
duration_matrix: Optional[List[List[float]]] = None
|
|
52
|
-
"""Matrix of travel durations in seconds between stops."""
|
|
72
|
+
duration_matrix: Optional[Union[List[List[float]], TimeDependentMatrix, List[TimeDependentMatrix]]] = None
|
|
73
|
+
"""Matrix of travel durations in seconds between stops as a single matrix or duration matrices."""
|
|
53
74
|
options: Optional[Any] = None
|
|
54
75
|
"""Arbitrary options."""
|
|
55
76
|
stop_groups: Optional[List[List[str]]] = None
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nextroute
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: Nextroute is an engine for solving Vehicle Routing Problems (VRPs).
|
|
5
5
|
Author-email: Nextmv <tech@nextmv.io>
|
|
6
6
|
Maintainer-email: Nextmv <tech@nextmv.io>
|
|
@@ -197,7 +197,7 @@ file.
|
|
|
197
197
|
|
|
198
198
|
For further information on how to get started, features, deployment, etc.,
|
|
199
199
|
please refer to the [official
|
|
200
|
-
documentation](https://www.nextmv.io/docs/vehicle-routing).
|
|
200
|
+
documentation](https://www.nextmv.io/docs/vehicle-routing/get-started).
|
|
201
201
|
|
|
202
202
|
### Go
|
|
203
203
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|