Commit 62d91236 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

yield for setup is not always performed

parent e66d1a02
......@@ -804,8 +804,10 @@ class Machine(CoreObject):
#===================================================================
#===================================================================
#===================================================================
yield self.env.process(self.operation(type='Setup'))
self.endOperationActions(type='Setup')
# if the distribution is Fixed and the mean is zero then yield not
if not (self.stpRng.mean==0 and self.stpRng.distributionType=='Fixed'):
yield self.env.process(self.operation(type='Setup'))
self.endOperationActions(type='Setup')
# # ======= setup the machine if the Setup is defined as one of the Operators' operation types
# # in plantSim the setup is performed when the machine has to process a new type of Entity and only once
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment