`pyvrp-shipment` is a package for wrapper for solving shipment in PyVRP
Project description
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]]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pyvrp_shipment-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pyvrp_shipment-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0c8b777c7d2dffd8730c03cd9218770e8c5e26f6ae91153026a41e89af810cc |
|
MD5 | c3a365eebdb8b070b7f1302626d79dae |
|
BLAKE2b-256 | b8de763242fa79a74fd0fa1ced7b5f3a7f800a28860c17a1dfd9c5ea08a5c9e0 |