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