question

Iram A2 avatar image
0 Likes"
Iram A2 asked Iram A2 commented

Operator return Port Condition

Hi, here you a model where Operator 1 have 3 different operations (OP20,OP30,OP40). I already close the port in Source 1 (S1), create a center connection to OP 40 and Open the center port in OP40 in order to get OP20, OP30 and OP40 in that sequence, but still the opeartor1 return first to OP20. Can you please help me whit this issue. ThanksOperator return Port Condition.fsm

FlexSim 19.1.2
operatorportsconnector
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

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Iram A2 commented

In this specific case it might be enough to set the utilize task on OP40 to "preempt only" and assign a priority > 0, so that the task is done first, even though the task to use OP20 was created first. The operator could however still "skip" OP20 if OP30 gets a new item first, due to the sources inter-arrival time distribution.

1651041974351.png

A more general solution would be to push the tasks onto a list instead of directly dispatching them. By sorting them into partitions based on the processor that created the task sequence, the operator can then pull the tasks from the list in the correct in a process flow. Since the task sequence wasn't dispatched to the operator directly, you have to "free" the operator from the utilize task manually after the process finishes (Wait for process finish -> Free operator activities).

1651041991577.png

operator-return-port-condition-fm.fsm

Note: I don't what your intention was for the center-connection between OP40 and S1, but

- Center-connections are mostly just a way to have a direct reference from one object to another. While they are the default way of referencing task executers for the "Use Operator" and "Use Transport" option, they don't possess any inherent logic.

- Nothing flows through centerport-connection and as such they can't be "closed" or "opened".


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

Iram A2 avatar image Iram A2 commented ·

Thanks so much for your answer

0 Likes 0 ·

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.