Cancel
Showing results for 
Search instead for 
Did you mean: 

Changing MU attributes with percentages

A proposed production system consists of three serial automatic workstations. The processing times at workstations are constant: 11, 10, and 12 (all times are in minutes). The part inter-arrival times are uniformly distributed with minimum 13 minutes to maximum 15 minutes. The unique aspect of this system is that the part has a chance to be reprocessed by the workstations that precedes workstation 2 and workstation 3 after completing the service in the respective workstations. For example, after completion at workstation 2, the part can be sent back to the queue in front of workstation 1with some probability which is mentioned later in the problem.

            The parts which are about to revisit any workstations for the second time have to be scrapped before entering the queue of that workstation for rework. We suppose to scrap the parts because there is no hope of reworking the same part for more than one time.
At present, it is estimated that the part revisiting probability is same for both the workstations (workstations 2 and 3). Develop the simulation model with the replication length of 10,000 minutes  and probabilities of revisit  to be 6% ?

 

3 REPLIES

Re: Changing MU attributes with percentages

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need to switch of the new syntax in the method editor (tools...)

Then you only need to correct your method:

 

(r : integer) : integer
is

percentage: real;
do
	percentage:=z_uniform(1,0,1);

	if percentage > 0.94 then
		@.quality:= @.quality+1;
		if @.quality < 2 then
			return 2;
		else 
			return 3;
		end;	
	else 
		return 1;		
	end;
end;
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Changing MU attributes with percentages

Sir, 

            The model is working really fine. Thanks for your help. But I still had a doubt in my mind, regarding the variable percentage.

percentage:=z_uniform(1,0,1);

 here we are generating random variable here between 0 and 1. Suppose we want exactly 6% of the entities to be revisited for processing.? What are the changes to be done in the method?

 

Thank you once again for your help.

Re: Changing MU attributes with percentages

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor
How do you want to select "exactly" 6 percent ?
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net