ankane / or-tools-ruby

Operations research tools for Ruby
Apache License 2.0
171 stars 20 forks source link

[VRP] Add API support for RegisterTransitMatrix? #33

Closed spinosa closed 2 years ago

spinosa commented 2 years ago

Passing the transit matrix to the C code with RegisterTransitMatrix has a significant performance improvement (over a transit callback) in my testing (using the python wrapper).

Would it be possible to support this API?

Thanks, and thanks for your great work with this wrapper!

ankane commented 2 years ago

Hey @spinosa, thanks for the suggestion! Added in the commit above.

spinosa commented 2 years ago

And it works! Of course.

Thanks @ankane !

PS Started wandering about your site and repos; awesome stuff.