question

Ahmed T avatar image
0 Likes"
Ahmed T asked tannerp answered

how can i calculate the tardiness ( lateness ) of products ?

i'm using a three processor system giving each product a Due Date using label , for knowing if the Earliest Due Date (dispatching rule) is effective i need to know the Tardiness ( Lateness ) of the products according to their due dates

FlexSim 18.2.3
dispatching ruleearliest due datelateness
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

tannerp avatar image
0 Likes"
tannerp answered

Hi @Ahmed T,

Here's a basic idea to get you started. In the attached model, you will find custom code under the Source1 properties and Processor1 properties that will essentially time stamp your items. In the source, the items are assign a "due date" based on their creation time + 20 seconds.

Then, at the processor, the items' processing times are evaluated. If the "due date" is a larger value than the current time, then these items are not late, so they receive a "0" for their tardiness label. If the current time is larger than the "due date," the difference between those times is calculated to assign a tardiness value to the item. Additionally, tardy items are colored red for the purpose of this example.

Hopefully this makes sense and helps. Let me know of any questions you might have.

Model: time-stamp-example.fsm


5 |100000

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