Skip to main content

`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

pyvrp_shipment-0.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file pyvrp_shipment-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyvrp_shipment-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29d5e7bbff2de223a54611492165174fe6f18781b710345e30f368fece166db7
MD5 11ab36519ad0b9c05ca7d594027ca20c
BLAKE2b-256 97fa1366ce9b7fb0d72d21272244d4b145486f51fad9d8cabd9a7e73dac32c86

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page