question

Hamza avatar image
0 Likes"
Hamza asked Jason Lightfoot edited

How can I change the rules of a dispatcher during the simulation?

Hello, please how can I change the rules of a dispatcher during the simulation to change the assignment of operators. For example, I want to assign 2 operators to a machine during the first day, and add a 3th operator at the beginning of the 2nd day? Thank you

FlexSim 22.2.0
dispatcheroperator assignment
· 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.

Natalie White avatar image Natalie White commented ·

Hi @Hamza, 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 Jason Lightfoot edited

Use a case statement on label value so that changing the label changes the option the dispatcher is using.

If you need to, copy the code from the picklist options and paste them for each case.

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

Hamza avatar image Hamza commented ·
Ok please do you have an example?
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Hamza commented ·

Sorry - I answered the title of your question, not the body - which is a different question.

To have a varying number of required operators the solution will depend upon your model.

For information you can set the number using

processor.setProperty("NumProcessOperators",3)

The properties are listed here.

0 Likes 0 ·