add a warning message to show if the execution exceeded the maximum time
This commit is contained in:
@@ -123,7 +123,9 @@ class Worker(Thread):
|
|||||||
self.RecedingHorizonControl.resequenceInbound(node.Inbound)
|
self.RecedingHorizonControl.resequenceInbound(node.Inbound)
|
||||||
|
|
||||||
# measure the exuction time of the overall optimization process
|
# measure the exuction time of the overall optimization process
|
||||||
print('Execution time: ' + str(time.process_time() - start) + ' seconds')
|
executionTime = time.process_time() - start
|
||||||
|
if 60.0 <= executionTime:
|
||||||
|
print('Optimized ' + str(len(aco.Result)) + ' inbounds in ' + str(executionTime) + ' seconds')
|
||||||
else:
|
else:
|
||||||
print('No relevant inbounds found for the optimization in ' + self.Icao)
|
print('No relevant inbounds found for the optimization in ' + self.Icao)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user