question

Osama A6 avatar image
0 Likes"
Osama A6 asked Jason Lightfoot edited

Dynamic travelling salesman problem 2

Let's assume that I have a truck going to different cities. Each city has an entrance (enter node), and exit (exit node). For instant, let's assume I have only 3 cities (which are A, C, and B). I want to make a table, that is linked to the truck. The table has 3 columns and dynamic rows. The column is: From, to, and time. The rows are created only when I visit the city. So, the first row is created when I went from origin A and sunk at depot B. The table will be filled as follows:

From I To I Time

exit A: enter B: 3:00

exit B : enter C : 2:30

exit C : enter A: 1:00

And I want another table that shows the time spent in each city and the queue for other trucks. Please try to build it from the attached model. dynamictravellingsalesmanproblem.fsm

I prefer to have a transcript to make the table if it is possible.

FlexSim 21.2.4
global tabletablestravelling salesman problem
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered Jason Lightfoot edited

Attached is a model with the statistics collector approach using a process flow as the listening mechanism:

1641990328500.png

dynamictravellingsalesmanproblem_jl.fsm


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Note - the second label I add to the token isn't used in the model and should be removed if you're generating travel tasks outside of a process flow (since it's just showing you how to find the token that generated the travel task in case that's useful)

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.