AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

ana.pc2 avatar image
0 Likes"
ana.pc2 asked Ben Wilson commented

Limit number of proccesses per day/shift on a processor

Hello everybody!

How are you?? My question is that I am trying to code a restriccion that limits the number of operations per day on a processor. In other words, I want to have a processor that only does 2 processes per day or shift (there is only 1 shift per day, so I don't mind). But I can't think in any logic to make that restriccion works. Any suggestions?

I tried a pull strategy with pullitem() only if the variable with the content on that day on that processor (I keep the date in another variable to check) is not higher than 2, but in some point stops working well :(

If I don't put any processes limit per day, it works perfectly the pullitem logic... D: so I am missing something -.-

Thanks!


FlexSim 20.2.3
flexsim 20.2.3logicpull itemrestriction
· 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.

Hi @ana.pc2,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

Thanks.

0 Likes 0 ·

Hi @ana.pc2, was Jörg Vogel's or marcello.rosadini's answer helpful? If so, please click the red "Accept" button on one of their answers. 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 unaccept or comment back to reopen your question.

0 Likes 0 ·
Marcello Rosadini avatar image
0 Likes"
Marcello Rosadini answered

Hi Ana,

you can try some variation of the attached model. In this one, the processor will process 2 jobs in 1 hour, randomly spacing the jobs within the hour.

Hope it helps!

support altran_1.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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered
  • You choose randomly three values by statistical distributions.
  • You sum the values to get a base of 100%.
  • Then you compute the percentage of each randomly chosen value to the base of 100%.
  • This percentage value multiplied by your time interval value gives you the first and second arrival time at your processor.

You must delay the entry time to your processor by another processor or simply in a Process Flow activity

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.