Cancel
Showing results for 
Search instead for 
Did you mean: 

Exit strategy percentage via method.

Valued Contributor
Valued Contributor

Hi All,

 

I have 2 Single proc & a Source.

 

I want to send the 33% of parts to Singleproc 1 % 67% of parts to SingleProc2, How to do this in a method. I dont wanna use exit strategy of Source.

 

is 

do

@.move (singleproc1  0.33);

@.move (Singleproc2  0.67);

end;

 

The above code is not running. 

2 REPLIES

Re: Exit strategy percentage via method.

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
first you create a random number, than depend on the value of this number, you move the MUs:
e.g.

is
do
local r:real:=z_uniform(1,0,1);--see help !
if r <=0.33 then
@.move(singleProc1);
else
@.move(singleProc2);
end;
end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Exit strategy percentage via method.

Valued Contributor
Valued Contributor
Thank you Steffen. It works.