nextroute 1.8.1__tar.gz → 1.10.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.

Files changed (32) hide show
  1. {nextroute-1.8.1/src/nextroute.egg-info → nextroute-1.10.0}/PKG-INFO +2 -2
  2. {nextroute-1.8.1 → nextroute-1.10.0}/README.md +1 -1
  3. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/__about__.py +1 -1
  4. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/bin/nextroute.exe +0 -0
  5. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/input.py +35 -4
  6. {nextroute-1.8.1 → nextroute-1.10.0/src/nextroute.egg-info}/PKG-INFO +2 -2
  7. {nextroute-1.8.1 → nextroute-1.10.0}/LICENSE +0 -0
  8. {nextroute-1.8.1 → nextroute-1.10.0}/pyproject.toml +0 -0
  9. {nextroute-1.8.1 → nextroute-1.10.0}/setup.cfg +0 -0
  10. {nextroute-1.8.1 → nextroute-1.10.0}/setup.py +0 -0
  11. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/__init__.py +0 -0
  12. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/base_model.py +0 -0
  13. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/check/__init__.py +0 -0
  14. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/check/schema.py +0 -0
  15. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/options.py +0 -0
  16. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/__init__.py +0 -0
  17. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/location.py +0 -0
  18. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/output.py +0 -0
  19. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/statistics.py +0 -0
  20. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/stop.py +0 -0
  21. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/schema/vehicle.py +0 -0
  22. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/solve.py +0 -0
  23. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute/version.py +0 -0
  24. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute.egg-info/SOURCES.txt +0 -0
  25. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute.egg-info/dependency_links.txt +0 -0
  26. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute.egg-info/requires.txt +0 -0
  27. {nextroute-1.8.1 → nextroute-1.10.0}/src/nextroute.egg-info/top_level.txt +0 -0
  28. {nextroute-1.8.1 → nextroute-1.10.0}/src/tests/schema/__init__.py +0 -0
  29. {nextroute-1.8.1 → nextroute-1.10.0}/src/tests/schema/test_input.py +0 -0
  30. {nextroute-1.8.1 → nextroute-1.10.0}/src/tests/schema/test_output.py +0 -0
  31. {nextroute-1.8.1 → nextroute-1.10.0}/src/tests/solve_golden/__init__.py +0 -0
  32. {nextroute-1.8.1 → nextroute-1.10.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.8.1
3
+ Version: 1.10.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
 
@@ -1,3 +1,3 @@
1
1
  # © 2019-present nextmv.io inc
2
2
 
3
- __version__ = "v1.8.1"
3
+ __version__ = "v1.10.0"
@@ -4,7 +4,8 @@
4
4
  Defines the input class.
5
5
  """
6
6
 
7
- from typing import Any, List, Optional
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
@@ -30,6 +31,30 @@ class DurationGroup(BaseModel):
30
31
  """Stop IDs contained in the group."""
31
32
 
32
33
 
34
+ class MatrixTimeFrame(BaseModel):
35
+ """Represents a time-dependent duration matrix or scaling factor."""
36
+
37
+ start_time: datetime
38
+ """Start time of the time frame."""
39
+ end_time: datetime
40
+ """End time of the time frame."""
41
+ matrix: Optional[List[List[float]]] = None
42
+ """Duration matrix for the time frame."""
43
+ scaling_factor: Optional[float] = None
44
+ """Scaling factor for the time frame."""
45
+
46
+
47
+ class TimeDependentMatrix(BaseModel):
48
+ """Represents time-dependent duration matrices."""
49
+
50
+ vehicle_ids: Optional[List[str]] = None
51
+ """Vehicle IDs for which the duration matrix is defined."""
52
+ default_matrix: List[List[float]]
53
+ """Default duration matrix."""
54
+ matrix_time_frames: Optional[List[MatrixTimeFrame]] = None
55
+ """Time-dependent duration matrices."""
56
+
57
+
33
58
  class Input(BaseModel):
34
59
  """Input schema for Nextroute."""
35
60
 
@@ -46,10 +71,16 @@ class Input(BaseModel):
46
71
  """Default values for vehicles and stops."""
47
72
  distance_matrix: Optional[List[List[float]]] = None
48
73
  """Matrix of travel distances in meters between stops."""
49
- duratrion_groups: Optional[List[DurationGroup]] = None
74
+ duration_groups: Optional[List[DurationGroup]] = None
50
75
  """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."""
76
+ duration_matrix: Optional[
77
+ Union[
78
+ List[List[float]],
79
+ TimeDependentMatrix,
80
+ List[TimeDependentMatrix],
81
+ ]
82
+ ] = None
83
+ """Matrix of travel durations in seconds between stops as a single matrix or duration matrices."""
53
84
  options: Optional[Any] = None
54
85
  """Arbitrary options."""
55
86
  stop_groups: Optional[List[List[str]]] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nextroute
3
- Version: 1.8.1
3
+ Version: 1.10.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