mu = 1 c = 30 lamb = desiredUtil * c st = 100 reps = 1 maxMIPS = 2500000 aggressivness = 0.10 util = lamb / (float)(mu * c) # def __init__(lamb, mu, c, simTime, reps): mySim = Simulator(lamb, mu, c, st, reps, maxMIPS, c * aggressivness) mySim.runSimulation() throughput = mySim.getThroughput() avgjobsinsys = mySim.getAvgJobsInSimulation() powerConsumedByServers = mySim.getPowerConsumptions() avgUtilizations = mySim.getAvgServerUtils() maxTemps = mySim.getMaxTemps() rrs = mySim.getAvgResponseTime() roundedAvg = [round(elem, accuracy) for elem in avgjobsinsys] roundedThroughput = [round(elem, accuracy) for elem in throughput] print '*****************************************************' print 'Params: (', lamb, ', ', mu, ', ', c, ', ', st, ', ', reps, ', ', maxMIPS, ')' print 'Utilization: ', round(util, accuracy) print 'Throughput: ', roundedThroughput