pyvroom icon indicating copy to clipboard operation
pyvroom copied to clipboard

Valid vehicles's profile

Open vuxnh opened this issue 1 year ago • 1 comments

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.

vuxnh avatar Sep 05 '24 10:09 vuxnh

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?

jonathf avatar Sep 06 '24 10:09 jonathf

Hi, I just found out that this issue is not closed. I found a mistake that prevented the profile from working, and I already fixed it.

vuxnh avatar Mar 13 '25 10:03 vuxnh