question

Ramesh Yadav avatar image
0 Likes"
Ramesh Yadav asked Adrian Haws commented

Randomly Selecting Operator from group and Exit time

sampleoperatorseq.fsmHello, I am trying to build a model where there are group of operator working. Basically I have 2 questions

1) How to select operator Randomly from the group

In my model first customer are coming and going to processor(according to their type) where processor uses operator for processing. There are total 3 operators. (Please refer attached sample model)

Operator P can work on both processor A and B. and Operator Q , R can work only on processor B.

If operator P is working on proc B, and any customer arrives at processor A then operator must finish current work and immediately goes to processor A.

Whereas for working on Processor B, any operator (P ,Q, R) randomly selected. How to do that.

2) And after finishing process customer takes 4 min to reach exit how to give this condition in model.

Eagerly waiting for your valuable suggestions.

Thank You.

FlexSim 7.5.4
exit timeoperator sele
5 |100000

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

1 Answer

·
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Adrian Haws commented

From what I can see, you've already got the first part of the question working. Operator P, Q and R are randomly assigned to Processor B. And Operator P will also be called to help Processor A.

As for the second question. You can accomplish this, by putting a few triggers on the processors. In their On Process Finish trigger I have them stop the output on themselves, and then send a delayed message to themselves (with a delay of 4). Then in the On Message trigger I just have them reopen their output ports.

You can take a look, I've reattached your model with the changes.

2020-sampleoperatorseq-2.fsm


· 6
5 |100000

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

Ramesh Yadav avatar image Ramesh Yadav commented ·

Hi @Sam Stubbs,

Thank You for your kind help.

Actually if we give delay on processor then it will block incoming for 4 minutes which should not happen. Once the process is finish it must leave the processor and after that it should reach to EXIT point withing 4 minutes. By that time some other flowitems may come to processor and starts processing there. How to give this condition in the model.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

The associated operator finish its work by the command freeoperators. If its event is delayed or the command itself is executed in OnMessage Trigger, the operator stays occupied for the time until the command gets executed.

0 Likes 0 ·
gilbert jerald avatar image gilbert jerald commented ·

hi @ sam stubbs

i have a question , can i do the same suggestion give by you, in a queue. by adding a queue in between the processor and sink instead of implementing your suggestion in processor can i implement this in queue? i have model it and i have cheek it but the model does not work is there anything problem with my idea or the idea which i propose is wrong

0 Likes 0 ·
Jeff Nordgren avatar image Jeff Nordgren gilbert jerald commented ·

@gilbert jerald

No. Your idea is fine and should work for what you are wanting it to do.

0 Likes 0 ·
Ramesh Yadav avatar image Ramesh Yadav Jeff Nordgren commented ·

Can anyone please tell me how to add time. After processor flowitem should reach to Exit point after 4 min only. ?

0 Likes 0 ·
Show more comments

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.