Skip to content

TSP suite?  #464

@ljwolf

Description

@ljwolf

I now have a collection of vehicle routing problem tools built on top of pyvrp that might be useful for spopt.

The tooling mainly involves data ingestion and conversion to formats/structures that pyvrp can natively work with, and then tools to extract geographical output from pyvrp solutions.

So, things like calculating ETAs in timestamps, conversion of input lon/lats to integer positions and back, creating route geometries, etc.

Is this of interest? I can maintain the public version, but would welcome feedback on API decisions. I think it is substantially different from locate as to warrant a new top level spopt.route module.

An example specification might be:

problem = Route(
    depot_location=(9.2413, 52.2921),
    depot_close=pandas.to_datetime("2025-01-02 20:00:00"),
    depot_name='My Depot',
).add_clients(
    data.geometry,
    data.demand_volume,
    data.time_windows,
    data.source.index,
    data.service_times
).add_trucks_from_frame(
   truck_df
).solve()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions