question

akshith vashala avatar image
0 Likes"
akshith vashala asked Joseph Gillespie commented

why cant we have statistical distribution for combiner target quantity?

This is for the improvement of flexsim further

FlexSim 19.1.0
combinerdistributionscombiner component list
5 |100000

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

gilbert jerald avatar image
2 Likes"
gilbert jerald answered

@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


5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

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


recipe-table.jpg (34.4 KiB)
5 |100000

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

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.