Commit b44d6b7b authored by Georgios Dagkakis's avatar Georgios Dagkakis

output ACO inputs in the start of the spreadsheet to be easier to review

parent 609d587a
......@@ -100,7 +100,33 @@ class BatchesStochasticACO(BatchesACO):
# number of replications for stochastic ants in the end
numberOfReplicationsInTheEnd=data['general'].get('numberOfReplicationsInTheEnd',6)
self.outputSheet.write(self.rowIndex,0,'ACO attributes')
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Number Of Generations')
self.outputSheet.write(self.rowIndex,2,int(data["general"]["numberOfGenerations"]))
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Number Of Ants Per Generation')
self.outputSheet.write(self.rowIndex,2,int(data["general"]["numberOfAntsPerGenerations"]))
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Stochastic Ants in Generation')
self.outputSheet.write(self.rowIndex,2,numberOfAntsForStochasticEvaluationInGeneration)
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Number of replications inside generation')
self.outputSheet.write(self.rowIndex,2,numberOfReplicationsInGeneration)
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Stochastic Ants in the end')
self.outputSheet.write(self.rowIndex,2,numberOfAntsForStochasticEvaluationInTheEnd)
self.rowIndex+=1
self.outputSheet.write(self.rowIndex,1,'Number of replications in the end')
self.outputSheet.write(self.rowIndex,2,numberOfReplicationsInTheEnd)
self.rowIndex+=1
assert max_results >= 1
assert numberOfAntsForNextGeneration>=1 \
and numberOfAntsForNextGeneration<=int(data["general"]["numberOfAntsPerGenerations"])
......
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