why cant we have statistical distribution for combiner target quantity?

why cant we have statistical distribution for combiner target quantity?

akshith_vashala
Not applicable
645 Views
2 Replies
Message 1 of 3

why cant we have statistical distribution for combiner target quantity?

akshith_vashala
Not applicable

[ FlexSim 19.1.0 ]

19446-combiner-target-qty.jpg

This is for the improvement of flexsim further

0 Likes
Accepted solutions (1)
646 Views
2 Replies
Replies (2)
Message 2 of 3

gilbertjerald1993
Advocate
Advocate
Accepted solution

@akshith vashala

Hi,

I have updated the combiner target quantity by distribution. Attached the model for your reference.

Combiner OnEntry Trigger:

Object current = ownerobject(c);
Object item = param(1);
int port = param(2);
double dblCombineQty= duniform(2,5);
if (port == 1) {  
  Table thelist = getvarnode(current, "componentlist");
  treenode thesum = getvarnode(current, "targetcomponentsum");
  thesum.value = 0;
  for(int index = 1; index <= thelist.numRows; index++) 
  {
    thelist[index][1] =dblCombineQty;
    inc(thesum,dblCombineQty);
  }
}


support-combiner-update.fsm

Thanks

Message 3 of 3

joerg_vogel_HsH
Mentor
Mentor

Standard approach: you add a global table for different recipes, which you control by the Type of the item entering the combiner through the input port 1. You choose the value of the Type label for this item by a discrete statistical distribution before it enters the combiner

19451-recipe-table.jpg

0 Likes