question

C avatar image
0 Likes"
C asked Felix Möhlmann answered

Problem with model: Probably wrong queue strategy

The thing with LC10 at around 20:20 should not happen.

charge-time.png


The process logic of BOS_ALS_PAS ends and BOS_KSK_PAS_ALS_KSK_BOS starts. LC10, the ship that has just arrived takes the trip. It should be the ship with the longest current idle time taking the first trip. In this case, it is LC11.

trip-time.png

Luckily it happens on the first day so it is easy to spot. Proposals are greatly appreciated.

Here is the model: v5.fsm

FlexSim 19.0.0
queue strategywrong order
v5.fsm (197.4 KiB)
· 3
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

Did the solution I posted in the other question not work or did you post this question because I previously asked you to create a new post for better visibility?

https://answers.flexsim.com/questions/119415/changing-the-value-of-a-variable-daily-depending-o.html

1 Like 1 ·
C avatar image C Felix Möhlmann commented ·
I opened this question but it was send to be approved. Then I couldn't find it under questions, so I could not delete this question. Your answer solved the ordering issue. Thank you.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann C commented ·
Ok, in that case I'll just copy my answer to this post. It'd be good if you can accept it to show that the issue was solved.
1 Like 1 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

When pulling an object, they will be evaluated according to their group ranking. So LC10 will be checked first and, if eligible based on the WHERE condition, will be pulled.

In order to always choose the "oldest" task executer, you could write the time it arrived at the location to a label and then order based on this label when pulling.

1651391071080.png1651391094821.png

ASC stands for 'ascending', so the value with the lowest/earliest arrival time will get pulled. (DESC would be 'descending')

5 |100000

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

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.