Commit 7d8291bf authored by Georgios Dagkakis's avatar Georgios Dagkakis

main script updated so that it can work with multiple runs

parent 84569594
...@@ -1266,19 +1266,18 @@ def main(argv=[], input_data=None): ...@@ -1266,19 +1266,18 @@ def main(argv=[], input_data=None):
#read the input from the JSON file and create the line #read the input from the JSON file and create the line
G.JSONData=json.loads(G.InputData) # create the dictionary JSONData G.JSONData=json.loads(G.InputData) # create the dictionary JSONData
readGeneralInput() readGeneralInput()
G.env=simpy.Environment() # initialize the environment
createObjects() createObjects()
createObjectInterruptions() createObjectInterruptions()
setTopology() setTopology()
#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)) G.env=simpy.Environment() # initialize the environment
if G.seed: if G.seed:
G.Rnd=Random('%s%s' % (G.seed, i)) G.Rnd=Random('%s%s' % (G.seed, i))
else: else:
G.Rnd=Random() G.Rnd=Random()
# initialize() #initialize the simulation
createWIP() createWIP()
initializeObjects() initializeObjects()
Globals.setWIP(G.EntityList) Globals.setWIP(G.EntityList)
......
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