How to evenly distribute the people flow to multiple waiting lines?

How to evenly distribute the people flow to multiple waiting lines?

akhil_raja_rao_k
Not applicable
53 Views
5 Replies
Message 1 of 6

How to evenly distribute the people flow to multiple waiting lines?

akhil_raja_rao_k
Not applicable

[ FlexSim 19.0.2 ]

Problem here I'am facing is, I have multiple waiting lines from a single source but the person flow was not "even" in all the waiting lines i.e even though some waiting lines are empty people were flowing to filled waiting line rather than empty waiting line i have used random connector and round robin too but the flow was not EVEN, please sort out this problem , any suggestion would be grateful. thanks in advance .please find the model in the attachment below.

people-flow-in-the-waiting-line.fsm

0 Likes
Accepted solutions (1)
54 Views
5 Replies
Replies (5)
Message 2 of 6

joerg_vogel_HsH
Mentor
Mentor

@Akhil raja rao K, my polite reply is. I beg you for attaching your model or better a simplified model. Many thanks. Regards Jörg.

0 Likes
Message 3 of 6

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

Take a look at the attached model. shortestline.fsm

I wrote a code snippet to send people from the first line to the shortest line in the second row:

Array lines = [Model.find("WaitingLine1"), Model.find("WaitingLine4"), Model.find("WaitingLine5"), Model.find("WaitingLine6")];

int minContent = INT_MAX;
Object minLine;

for(int i = 1; i <= lines.length; i++) {
	Object line = lines;
	int lineContent = line.subnodes.length;
	if(lineContent < minContent) {
		minLine = line;
		minContent = lineContent;
	}
}
return minLine;


Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 4 of 6

akhil_raja_rao_k
Not applicable

@Matthew Gillespie you simplified everything by using just waiting line & code with out using walk, decision and all, Tq for ur answer sir.

0 Likes
Message 5 of 6

akhil_raja_rao_k
Not applicable

@Matthew Gillespie sir. I've applied it for task executer process flow by adding another waiting line in the code i.e totally 5 waiting lines but the people distribution was not even, will you correct me where I did mistake, I'm attaching the model , Please find the attachment.

flexsim-community.fsm

0 Likes
Message 6 of 6

Matthew_Gillespie
Autodesk
Autodesk

If you're using an instanced flow you use the keyword current to refer to the instance object (the person in this case).

fixed.fsm



Matthew Gillespie
FlexSim Software Developer