Get final custom state for best solution

Hi!

First of all thanks for a great library :). I’m using StateManager to keep some custom state for my routes, is there a way to retrieve the state associated with the routes in the best solution at the end of the execution? I need to output it as part of the result.

Cheers,
Julian

Hi, I believe you can iterate over the routes in your best solution and retrieve the states by using the function getRouteState(VehicleRoute route, StateId stateId, Class type) on your StateManager.