question

jacks avatar image
0 Likes"
jacks asked Julie Weller commented

How to figure out late delivery and set penalty on it ?

2222.fsm In the stimulation, i'd like to stimulate the transportationof cargo from agent to the destination. However, the trigger creation function of source seems like can only set one laber. Thus, i want someone to help me to check how i should build the process of checking the late delivery cargo and show it in the different color by the processer.

FlexSim 21.2.4
late deliverytardiness
2222.fsm (284.5 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.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

You seem to have asked the same question title here.

With what are you struggling?

How to determine if an event time is before or after another event time?

How to change the color of an object?

0 Likes 0 ·
jacks avatar image jacks Jason Lightfoot ♦ commented ·

Yeah, actually the same question, I forget to attach the context in the last question. I'm working on a summer project for undergraduates, which requires me to learn how to use this software by myself, not an assignment. There are 2 main functions I'm struggling

1, set a penalty for late delivery of the cargo (which means there should be a due-date setting for every box

2, set a color to distinguish late delivery cargo (which means the late delivered cargo could be shown in a different color in the destination

I have no idea about the 1's penalty trigger building, and 2's coding in "processer" and "source' seems like does not work

0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

Hi @jacks, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered

First of all you have numerous exceptions which need to be addressed.

1) You seem to have copy pasted a picklist option in to the AGENTS creationtrigger including the header that sets up variables - this is causing "duplicate variable name in scope" errors. You only need the (correct) header definition once for the trigger.

2) You can add the setting of more labels by just pressing the + button in the popup.

1688460958241.png

3) With the fix you should have the due date label on the box which you can then, on arrival at the delivery point, check for lateness and change color (or since they are already different colors, select the box using switch_selected(item,1) ).

4) You say apply a penalty - where and to what?



1688460958241.png (7.0 KiB)
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.