VROOM-Project / pyvroom

Vehicle Routing Open-source Optimization Machine
BSD 2-Clause "Simplified" License
69 stars 14 forks source link

Valid vehicles's profile #115

Open vuxnh opened 2 months ago

vuxnh commented 2 months ago

Can I set a custom profile for vehicles? I found out that there are some values like "car", "truck"

I want to set something like this

 vroom.Vehicle(
          profile=vehicle["provider"],
          id=vehicle["id"],
          start=0,
          time_window=time_window,
          capacity=[vehicle["capacity"]],
)

for provider, matrix in cost_matrices.items():
        problem_instance.set_costs_matrix(profile=provider, matrix_input=matrix)

Currently, it returns the error:

VroomInputException: Missing coordinates for routing engine.

jonathf commented 2 months ago

It should be supported, yes. But I am unsure what is going on in your example. Do you mind creating a runnable minimal example that evoke the error?