I am building a quality control model for brewery industry where i have to introduce some 5 % of error in filling protion of the beer(either at filling ,cap or labels) and then while going to the quality control,it has to detect it.Can anybody tell me how to introduce the error?
Can i do this with some method implenentation?
Also, I don't have an idea what to do next after quality control detects the error.
Please provide me the solution to it.i have attach the simulation file for the reference.
You can create a boolean attribute on your bottle (called defective for example).
is do local myBottle : object := @ ; local Defection_Rate : real := 0.05 ; if z_uniform(1,0,1) < Defection_Rate then myBottle.defective := TRUE ; else myBottle.defective := FALSE; end; end;
You can attach this method in a sensor or entrace ctrl ... etc
I hope it helps !
I tried your solution it really worked.Thanks.
But can you please tell me after this defects have been caught under quality control..Where to send these defected bottles..?
I should drain them or something else. what is happening in real industry?
I am student and don't have any idea to do this.
You can create a variable on your frame in order to count how many defective bottles did you get. Information Flow -> Variable (choose the integer type, and check the initial value at zero) and call it for example "Defectives".
When you find a defective bottle you can delete it and incrementing the variable Defectives.
is do local myBottle : object := @ ; if myBottle.Defective then myBottle.delete(); Defectives := Defectives + 1 ; end; end;