瀏覽代碼

god this is a pain

tarfeef101 6 年之前
父節點
當前提交
8c1fa80ef0
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 二進制
      a2/hill_climbing.pdf
  2. 3 3
      a2/tsp_local.py

二進制
a2/hill_climbing.pdf


+ 3 - 3
a2/tsp_local.py

@@ -336,19 +336,19 @@ def main():
         axes[0].set_xlabel("Problem Instances w/ x cities")
         axes[0].set_ylabel("Steps Used", color = 'b')
         axes[0].title.set_text('Avg Steps of Algorithm')
-        axes[0].xticks([14, 15, 16])
+        axes[0].set_xticks([14, 15, 16])
         
         axes[1].plot(range(14, 17), solution_scores, color = 'b')
         axes[1].set_xlabel("Problem Instances w/ x cities")
         axes[1].set_ylabel("Solution Quality", color = 'b')
         axes[1].title.set_text('Avg Relative Quality of Solutions')
-        axes[1].xticks([14, 15, 16])
+        axes[1].set_xticks([14, 15, 16])
         
         axes[2].plot(range(14, 17), good_sol_counts, color = 'b')
         axes[2].set_xlabel("Problem Instances w/ x cities")
         axes[2].set_ylabel("% of runs <= NEOS", color = 'b')
         axes[2].title.set_text('Avg % of Algorithms Equal or Better than NEOS')
-        axes[2].xticks([14, 15, 16])
+        axes[2].set_xticks([14, 15, 16])
             
         plt.tight_layout()
         pdf.savefig()