Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid vehicles's profile #115

Open
vuxnh opened this issue Sep 5, 2024 · 1 comment
Open

Valid vehicles's profile #115

vuxnh opened this issue Sep 5, 2024 · 1 comment

Comments

@vuxnh
Copy link

vuxnh commented Sep 5, 2024

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
Copy link
Collaborator

jonathf commented Sep 6, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants