Skip to content

The issue to invoke the solution after the model is solved #654

Closed Answered by N-Wouda
abb-omidi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @abb-omidi

Would you please, is there any way to take the solution as a list or dictionary something like this: [[9,2,5],[7,6,1],[4,10,3],[8]]

The easiest is probably

visits = [route.visits() for route in best_solution.routes()]

Does the attribute release_time inside clients method use a single array of released date of each order? (It seems it can)

release_time is an integer that specifies the earliest time such a client order may leave the depot, if it's put on a route. It thus impacts route's start times. I do not understand the question about arrays.

What is the difference between defining the release_time as an array like this [10,20] or as a TIME_WINDOWS something like this …

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by N-Wouda
Comment options

You must be logged in to vote
1 reply
@N-Wouda
Comment options

Comment options

You must be logged in to vote
1 reply
@N-Wouda
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #653 on September 21, 2024 19:33.