Pārlūkot izejas kodu

forgot to index an array properly and i gotta wait forever for this to run again :(

tarfeef101 6 gadi atpakaļ
vecāks
revīzija
6c6e8f3b90
2 mainītis faili ar 51 papildinājumiem un 1 dzēšanām
  1. 50 0
      a2/hill_climbing_restarts.pdf
  2. 1 1
      a2/tsp_local.py

+ 50 - 0
a2/hill_climbing_restarts.pdf

@@ -0,0 +1,50 @@
+%PDF-1.4
+%† Ǽ
+1 0 obj
+<< /Pages 2 0 R /Type /Catalog >>
+endobj
+8 0 obj
+<< /ExtGState 4 0 R /Font 3 0 R /Pattern 5 0 R
+/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ] /Shading 6 0 R
+/XObject 7 0 R >>
+endobj
+3 0 obj
+<< >>
+endobj
+4 0 obj
+<< >>
+endobj
+5 0 obj
+<< >>
+endobj
+6 0 obj
+<< >>
+endobj
+7 0 obj
+<< >>
+endobj
+2 0 obj
+<< /Count 0 /Kids [ ] /Type /Pages >>
+endobj
+9 0 obj
+<< /CreationDate (D:20181025023114-04'00')
+/Creator (matplotlib 3.0.0, http://matplotlib.org)
+/Producer (matplotlib pdf backend 3.0.0) >>
+endobj
+xref
+0 10
+0000000000 65535 f 
+0000000016 00000 n 
+0000000313 00000 n 
+0000000208 00000 n 
+0000000229 00000 n 
+0000000250 00000 n 
+0000000271 00000 n 
+0000000292 00000 n 
+0000000065 00000 n 
+0000000366 00000 n 
+trailer
+<< /Info 9 0 R /Root 1 0 R /Size 10 >>
+startxref
+519
+%%EOF

+ 1 - 1
a2/tsp_local.py

@@ -513,7 +513,7 @@ def reinhold_messner_graph():
                 axes[i][j].plot(range(1, 16), solution_times[i][j], color = 'b')
                 axes[i][j].set_xlabel("Problem Instance w/ " + str(i + 14) + " cities")
                 axes[i][j].set_ylabel("Time Taken", color = 'b')
-                axis_twin = axes[i].twinx()
+                axis_twin = axes[i][j].twinx()
                 axis_twin.plot(range(1, 16), solution_scores[i][j], color = 'r')
                 axis_twin.set_ylabel("Solution Quality", color = 'r')
                 #axes[i].legend()