question

jacks avatar image
0 Likes"
jacks asked Felix Möhlmann commented

How to set a time limit for the cargo transportation with a late penalty

FlexSim 21.2.4
item tracetime limit
· 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 ·

Hi @jacks,

It looks like this question may be part of a homework assignment or academic project. The professors who assign simulation modeling exercises using FlexSim expect that the academic integrity of their assignments will be maintained. In addition, we are supportive of Honor Codes or Pledges that regulate the behavior surrounding academic assignments.

I recommend reading our best practices page on the subject, which includes some resources that you should find helpful as you use FlexSim for academic purposes. I also highly recommend Dr. Allen Greenwood's FlexSim Primer, which was written specifically for students and professors.

0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
1 Like"
Felix Möhlmann answered Felix Möhlmann commented

Do you mean something like this? (Model from your previous question - Please provide context on every question you ask, so people can understand without having to be aware of any previous posts)

In the "Distribution Center" queue I create a label "DueTime" on the pallets.

capture1.png

In the On Entry trigger of the sink, I use this label and the current model time to assign one of multiple "LatePenalty" values to the pallet. (screenshot below is missing a semicolon at the end of the first line of code)

capture2.png

These are then used in the Financial chart to add penalty amounts to the running costs.

capture3.png

2222-fm_1.fsm


capture1.png (48.4 KiB)
capture2.png (13.0 KiB)
capture3.png (8.3 KiB)
2222-fm-1.fsm (169.8 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.

jacks avatar image jacks commented ·
Thanks for answering, I did not see the answer yesterday and I asked the same question with the context in another one.
0 Likes 0 ·
jacks avatar image jacks commented ·

Hi, felix. There is a point i am a little bit confused, the model time means the current time right? So the time calculation is current time (arrivel)- (current time (start out) + 1500 seconds) ?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann jacks commented ·
Yes, meaning if more than 1500s have passed since the item's entry it is considered "late" (penalty 1). If more than 2400s have passed (1500 + 900) the penalty increases to 2 and to 3 at more than 3300s.
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.