question

Raja Sekaran avatar image
2 Likes"
Raja Sekaran asked Raja Sekaran commented

How to build model that creates token based on model run time?

I want to run the model for 1 year such that each month have different reorder point. How to set reorder point for each month based on model run time?

Thanks in advance.

FlexSim 16.2.0
model run time
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·

Send a delayed message. And receiving this message send a new delayed message.

1 Like 1 ·
Raja Sekaran avatar image Raja Sekaran Joerg Vogel commented ·

Thank you for your reply. I am running the model from Jan 2016 to Dec 2016

.

In that each month have different reorder point so that i want to fix the reorder point for each month. If the model run time changes from one month to another, activity has to to take respective reorder point.

Month Reorder point
Jan 1008
Feb 823
Mar 935
Apr 1189
May 743
Jun 933
Jul 1261
Aug 1124
Sep 2028
Oct 2311
Nov 950
Dec 1470
2 Likes 2 ·
model-run-time.png (4.8 KiB)

1 Answer

·
Brandon Peterson avatar image
3 Likes"
Brandon Peterson answered Raja Sekaran commented

Raja,

The way that I have done this in the past is outlined below:

  1. Create a token at the beginning of every period (1 month for you) using a source with an inter arrival time set to the period time with the arrival at time 0 option checked.
  2. After the source us a delay activity to delay the token until your reorder point for the specific month.

This method will give you a token at the exit of the second delay at the correct reorder time of every month.

I hope this gets you started,

Brandon

· 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.

Raja Sekaran avatar image Raja Sekaran commented ·

Thanks @Brandon Peterson. I built a sample model based on your approach. Here i am attaching the sample model for your referencereorder-point.fsm. But, it would be better if i write code based on getmodelunit(CURRENT_MONTH_OF_THE_YEAR). Is it possible?

2 Likes 2 ·
reorder-point.fsm (22.2 KiB)

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.