`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
Release history Release notifications | RSS feed
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
Close
Hashes for pyvrp_shipment-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc52018473fa83299a1df3194722a29a019161736d1d09d31fd2c4c922bf2f64 |
|
MD5 | 2c66468eabeabd4f4b325664677a7a22 |
|
BLAKE2b-256 | 41e282b4e92895b70059c5d86dd2f290f893cef422665713cbb41489607ad20e |