pyvrp-shipment
pyvrp-shipment is a package for wrapper for solving shipment in PyVRP.
https://pyvrp.org/
Installation
pip install pyvrp-shipment
Example
from pyvrp_shipment import Order, Param, VehicleType_, solve
duration = {"nd1_nd2": 16}
vehicle_type = VehicleType_(num_available=1, capacity=10, max_duration=16 + 3 * 2)
orders = [Order("nd1", "nd2", delivery=10, service_duration=3)]
param = Param(duration, vehicle_type, orders)
result = solve(param, max_iterations=100, display=False)
if result.is_feasible():
print(result.result)
print("route =", result.order_indexes)
Solution results
================
# routes: 1
# clients: 2
objective: 16.00
# iterations: 100
run-time: 0.06 seconds
Routes
------
Route #1: 1 2
route = [[0]]
Metadata
Release files for pyvrp-shipment 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyvrp_shipment-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pyvrp_shipment-0.2.2-py3-none-any.whl
| Download URL | pyvrp_shipment-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0119a3d2ad0ca581eb308014852484678fdc97d993b3381f5b7343d3918e4610
|
|
BLAKE2b-256 checksum How to use checksums |
a14641c348b4a6fddb2be75de6ab2fec262cf3487d1fcf59fe36bf530be2211a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|