roundedThroughput = [round(elem, accuracy) for elem in throughput] print 'Params: (', lamb, ', ', mu, ', ', c, ', ', st, ', ', reps, ')' print 'Utilization: ', round(util, accuracy) print 'Throughput: ', roundedThroughput print 'Avg # Jobs in System: ', roundedAvg print 'Throughput Average: ', round( (sum(roundedThroughput) / len(roundedThroughput)), accuracy) print 'Average Average Number of Jobs in System: ', round( (sum(roundedAvg) / len(roundedAvg)), accuracy) mean, lower, upper = mean_confidence_interval(avgjobsinsys) print 'CI: [', round(lower, accuracy), ',', round(upper, accuracy), ']' mySim = Simulator(lamb, mu, 2, st, 1) mySim.runSimulation() xAxis = mySim.getXAxis() yAxis = mySim.getYAxis() plt.plot(xAxis, yAxis) plt.title('RR - 95% Utilization 2 Servers') plt.xlabel('Time') plt.ylabel('Average Number of Jobs in System') plt.show()