Commit ad36129a authored by Jérome Perrin's avatar Jérome Perrin

Do not modify seed on each run to have predictible results

parent 6ae44a72
...@@ -1263,8 +1263,7 @@ def main(argv=[], input_data=None): ...@@ -1263,8 +1263,7 @@ def main(argv=[], input_data=None):
#run the experiment (replications) #run the experiment (replications)
for i in xrange(G.numberOfReplications): for i in xrange(G.numberOfReplications):
#logger.info("start run number "+str(i+1)) #logger.info("start run number "+str(i+1))
G.seed+=1 G.Rnd=Random(G.seed + i)
G.Rnd=Random(G.seed)
initialize() #initialize the simulation initialize() #initialize the simulation
createWIP() createWIP()
initializeObjects() initializeObjects()
......
...@@ -6,19 +6,19 @@ ...@@ -6,19 +6,19 @@
"id": "E1", "id": "E1",
"results": { "results": {
"lifespan": { "lifespan": {
"avg": 8.389456464150808, "avg": 7.644704034234376,
"max": 9.862246183668073, "max": 9.273160413246833,
"min": 6.916666744633542 "min": 6.016247655221919
}, },
"takt_time": { "takt_time": {
"avg": 1.6638373280700693, "avg": 1.3184411532500233,
"max": 1.6638373280700693, "max": 1.3184411532500233,
"min": 1.6638373280700693 "min": 1.3184411532500233
}, },
"throughput": { "throughput": {
"avg": 30.75, "avg": 32.25,
"max": 32.4991076812121, "max": 34.2341794502541,
"min": 29.000892318787898 "min": 30.265820549745897
} }
} }
}, },
...@@ -52,14 +52,14 @@ ...@@ -52,14 +52,14 @@
"min": 0.0 "min": 0.0
}, },
"waiting_ratio": { "waiting_ratio": {
"avg": 5.780684174517209, "avg": 6.40180811900683,
"max": 7.703045665141752, "max": 8.264789529051413,
"min": 3.8583226838926654 "min": 4.538826708962247
}, },
"working_ratio": { "working_ratio": {
"avg": 94.2193158254828, "avg": 93.59819188099317,
"max": 96.14167731610733, "max": 95.46117329103775,
"min": 92.29695433485826 "min": 91.73521047094859
} }
} }
} }
......
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