pyvroom
pyvroom copied to clipboard
Valid vehicles's profile
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.
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?
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.