hi vincent!
I am trying to do this part of the warm start.... I already got an assignment as a vector of vectors.... now i want to use that warm start for a local search phase... but something is working.... what i have now in my second optimizer is:
routing = pywrapcp.RoutingModel(num_locations, num_vehicles, 0)
search_parameters2 = pywrapcp.RoutingModel_DefaultSearchParameters()
current_solution= routing.ReadAssignmentFromRoutes(listOfLists,False)
assignment_new = routing.Solve(current_solution)
search_parameters2.local_search_metaheuristic = (routing_enums_pb2.LocalSearchMetaheuristic.GUIDED_LOCAL_SEARCH)
search_parameters2.time_limit_ms = search_time_limit * 1000
then i am using the callback to print every new solution found like this:
SolutionCb = Cbs.SolutionFound(routing)
routing.AddAtSolutionCallback(SolutionCb)
Unfortunately it outputs a 0, which means that it doesnt assign any cost to the new assignment.... is there an additional set up that i need to consider to make it work?
Thanks for your support
Kindest Regards