question

Maru L avatar image
0 Likes"
Maru L asked Joseph Gillespie commented

process time according to a linear function

hello, I have a model where there are 3 processes. At the 3rd process, the processing time increased according to a linear function of y = 145.2x + 154. How do I set the process time according to said linear function?

process timeprocessing 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.

Joshua S avatar image Joshua S commented ·

What is x?

2 Likes 2 ·
Maru L avatar image Maru L Joshua S commented ·

@Joshua S x is which item is being processed (n-1). So for example if it is the first item that is processed for that day, the process time will be y = 145.2(0) + 154 =154 sec. If it is the 2nd item that is processed for that day, the process time will be y = 145.2(1) + 154 = 299.2 sec, and so forth.

0 Likes 0 ·

1 Answer

·
Joshua S avatar image
0 Likes"
Joshua S answered

Here is an example. Create a label that increments for each item that is created, then throw that label into the x value of your function and you can just put that equation directly into the edit field of the process time for the processor.

linear-function.fsm


linear-function.fsm (282.4 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.