diff --git a/ea/ubA/a28.py b/ea/ubA/a28.py index 3e1edba..b22edb6 100644 --- a/ea/ubA/a28.py +++ b/ea/ubA/a28.py @@ -38,7 +38,27 @@ for i in np.arange(0,100): stats[j]=stats[j]+np.transpose(ES(2,1,corridor,zw=zw,lb=0,ub=0)) stats[j]=stats[j]/100 - print(j) + plt.plot(stats[j][0],stats[j][1],"rx") + plt.xlabel("t") + plt.ylabel("sigma") + plt.title("sigma over time, zw="+str(zw)) + #plt.axis((0,100000,0,1e10)) + plt.savefig("/home/jph/abgabensammlungSS15/ea/ubA/figures/sigma"+str(zw)+".png") + plt.close() + plt.plot(stats[j][0],stats[j][2],"rx") + plt.xlabel("t") + plt.ylabel("we") + plt.title("we over time, zw="+str(zw)) + plt.axis((0,100000,0,0.55)) + plt.savefig("/home/jph/abgabensammlungSS15/ea/ubA/figures/we"+str(zw)+".png") + plt.close() + plt.plot(stats[j][0],stats[j][3],"rx") + plt.xlabel("t") + plt.ylabel("fitness") + plt.title("fitness over time, zw="+str(zw)) + plt.axis((0,100000,0,1e5)) + plt.savefig("/home/jph/abgabensammlungSS15/ea/ubA/figures/fitness"+str(zw)+".png") + plt.close() j=j+1 np.save("/home/jph/abgabensammlungSS15/ea/ubA/figures/stats.npy",stats)