A deterministic evolutionary solver for symmetric Euclidean traveling-salesperson instances. It combines farthest insertion with the public selection, permutation, sampling, and evolution contracts from knotkit.
Bounded complete runs: sim-grid-B-010 in 2.784 ms and sim-grid-B-050 in 6.947 ms; policy rows are too noisy to rank
knotkit/evolution : Runs deterministic population evolution with index-based parent selection and immutable permutation operators
knotkit/sampling : Draws unbiased subsets, pairs, shuffles, and weighted samples over injected randomness
knotkit/distance : Compares vectors, probability distributions, and sets and exposes each rule’s mathematical guarantees
knotkit/prng : Generates seeded pseudorandom numbers and unbiased integers for reproducible simulations and tests
{"v":1,"box":[72.5399,94.1597,1043,446.9922],"x":{"s":"linear","lim":[-1.8,41.8],"inv":false,"g":0,"t":"Generation (the run stops after 30 without improvement)","tk":[[0,"0"],[10,"10"],[20,"20"],[30,"30"],[40,"40"]]},"y":{"s":"linear","lim":[6402.5,7350.56],"inv":false,"g":0,"tk":[[6563,"6,563"],[6670,"6,670"],[7000,"7,000"]]},"ti":"All 20 tours first cost the same at generation 5","a":[{"k":"line","c":"#fffff8","s":"x","d":[3,7055.75,4,6684.75,5,6670,6,6670,7,6670,8,6670,9,6670,10,6664.65,11,6643.25,12,6604.85,13,6568.35,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6580.15,40,6563],"p":[179.38,203.88,201.64,341.95,223.9,347.44,246.15,347.44,268.41,347.44,290.67,347.44,312.93,347.44,335.19,349.43,357.45,357.39,379.7,371.69,401.96,385.27,424.22,387.26,446.48,387.26,468.74,387.26,491,387.26,513.25,387.26,535.51,387.26,557.77,387.26,580.03,387.26,602.29,387.26,624.54,387.26,646.8,387.26,669.06,387.26,691.32,387.26,713.58,387.26,735.84,387.26,758.09,387.26,780.35,387.26,802.61,387.26,824.87,387.26,847.13,387.26,869.39,387.26,891.64,387.26,913.9,387.26,936.16,387.26,958.42,387.26,980.68,380.88,1002.94,387.26]},{"k":"line","c":"#c4501b","s":"x","d":[3,7055.75,4,6684.75,5,6670,6,6670,7,6670,8,6670,9,6670,10,6664.65,11,6643.25,12,6604.85,13,6568.35,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6580.15,40,6563],"p":[179.38,203.88,201.64,341.95,223.9,347.44,246.15,347.44,268.41,347.44,290.67,347.44,312.93,347.44,335.19,349.43,357.45,357.39,379.7,371.69,401.96,385.27,424.22,387.26,446.48,387.26,468.74,387.26,491,387.26,513.25,387.26,535.51,387.26,557.77,387.26,580.03,387.26,602.29,387.26,624.54,387.26,646.8,387.26,669.06,387.26,691.32,387.26,713.58,387.26,735.84,387.26,758.09,387.26,780.35,387.26,802.61,387.26,824.87,387.26,847.13,387.26,869.39,387.26,891.64,387.26,913.9,387.26,936.16,387.26,958.42,387.26,980.68,380.88,1002.94,387.26]},{"k":"line","c":"#fffff8","s":"x","d":[0,6670,1,6670,2,6670,3,6670,4,6670,5,6670,6,6670,7,6670,8,6670,9,6670,10,6563,11,6563,12,6563,13,6563,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6563,40,6563],"p":[112.6,347.44,134.86,347.44,157.12,347.44,179.38,347.44,201.64,347.44,223.9,347.44,246.15,347.44,268.41,347.44,290.67,347.44,312.93,347.44,335.19,387.26,357.45,387.26,379.7,387.26,401.96,387.26,424.22,387.26,446.48,387.26,468.74,387.26,491,387.26,513.25,387.26,535.51,387.26,557.77,387.26,580.03,387.26,602.29,387.26,624.54,387.26,646.8,387.26,669.06,387.26,691.32,387.26,713.58,387.26,735.84,387.26,758.09,387.26,780.35,387.26,802.61,387.26,824.87,387.26,847.13,387.26,869.39,387.26,891.64,387.26,913.9,387.26,936.16,387.26,958.42,387.26,980.68,387.26,1002.94,387.26],"ds":"post"},{"k":"line","c":"#1d5fa6","s":"x","d":[0,6670,1,6670,2,6670,3,6670,4,6670,5,6670,6,6670,7,6670,8,6670,9,6670,10,6563,11,6563,12,6563,13,6563,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6563,40,6563],"p":[112.6,347.44,134.86,347.44,157.12,347.44,179.38,347.44,201.64,347.44,223.9,347.44,246.15,347.44,268.41,347.44,290.67,347.44,312.93,347.44,335.19,387.26,357.45,387.26,379.7,387.26,401.96,387.26,424.22,387.26,446.48,387.26,468.74,387.26,491,387.26,513.25,387.26,535.51,387.26,557.77,387.26,580.03,387.26,602.29,387.26,624.54,387.26,646.8,387.26,669.06,387.26,691.32,387.26,713.58,387.26,735.84,387.26,758.09,387.26,780.35,387.26,802.61,387.26,824.87,387.26,847.13,387.26,869.39,387.26,891.64,387.26,913.9,387.26,936.16,387.26,958.42,387.26,980.68,387.26,1002.94,387.26],"ds":"post"},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"fill","c":"#c4501b"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#5c5c57"}],"lg":[]}
0
10
20
30
40
Generation (the run stops after 30 without improvement)
6,563
6,670
7,000
mean, from 32,366 off scale
worst tour
best so far improves once, −1.6%
Tour cost (TSPLIB units)
All 20 tours first cost the same at generation 5
{"v":1,"box":[150.6556,607.7964,964.8843,960.6288],"x":{"s":"linear","lim":[-17.5,1617.5],"inv":false,"g":1,"t":"City x","tk":[[50,"50"],[500,"500"],[1000,"1,000"],[1550,"1,550"]]},"y":{"s":"linear","lim":[70.75,779.25],"inv":false,"g":1,"tk":[[100,"100"],[400,"400"],[600,"600"],[750,"750"]]},"ti":"Generation 10 swaps 2 edges: 6,670 → 6,563","a":[{"k":"line","c":"#fffff8","s":"xy","d":[100,100,200,100,200,150,250,350,400,350,600,300,750,350,700,100,1000,100,1100,100,1100,150,1000,150,950,300,1100,300,1250,550,1300,500,1450,350,1450,300,1500,500,1500,550,1550,700,1550,750,1350,750,1300,750,1100,750,1050,750,1050,700,1050,500,900,500,900,550,850,550,800,750,600,750,550,750,650,550,700,500,500,500,450,500,450,550,350,750,300,750,100,750,250,550,100,550,50,550,50,500,100,500,50,350,50,300,100,150,100,100],"p":[209.17,946.06,258.97,946.06,258.97,921.16,283.87,821.56,358.57,821.56,458.17,846.46,532.87,821.56,507.97,946.06,657.37,946.06,707.17,946.06,707.17,921.16,657.37,921.16,632.47,846.46,707.17,846.46,781.87,721.96,806.77,746.86,881.47,821.56,881.47,846.46,906.37,746.86,906.37,721.96,931.27,647.26,931.27,622.36,831.67,622.36,806.77,622.36,707.17,622.36,682.27,622.36,682.27,647.26,682.27,746.86,607.57,746.86,607.57,721.96,582.67,721.96,557.77,622.36,458.17,622.36,433.27,622.36,483.07,721.96,507.97,746.86,408.37,746.86,383.47,746.86,383.47,721.96,333.67,622.36,308.77,622.36,209.17,622.36,283.87,721.96,209.17,721.96,184.27,721.96,184.27,746.86,209.17,746.86,184.27,821.56,184.27,846.46,209.17,921.16,209.17,946.06]},{"k":"line","c":"#5b6b7c","s":"xy","d":[100,100,200,100,200,150,250,350,400,350,600,300,750,350,700,100,1000,100,1100,100,1100,150,1000,150,950,300,1100,300,1250,550,1300,500,1450,350,1450,300,1500,500,1500,550,1550,700,1550,750,1350,750,1300,750,1100,750,1050,750,1050,700,1050,500,900,500,900,550,850,550,800,750,600,750,550,750,650,550,700,500,500,500,450,500,450,550,350,750,300,750,100,750,250,550,100,550,50,550,50,500,100,500,50,350,50,300,100,150,100,100],"p":[209.17,946.06,258.97,946.06,258.97,921.16,283.87,821.56,358.57,821.56,458.17,846.46,532.87,821.56,507.97,946.06,657.37,946.06,707.17,946.06,707.17,921.16,657.37,921.16,632.47,846.46,707.17,846.46,781.87,721.96,806.77,746.86,881.47,821.56,881.47,846.46,906.37,746.86,906.37,721.96,931.27,647.26,931.27,622.36,831.67,622.36,806.77,622.36,707.17,622.36,682.27,622.36,682.27,647.26,682.27,746.86,607.57,746.86,607.57,721.96,582.67,721.96,557.77,622.36,458.17,622.36,433.27,622.36,483.07,721.96,507.97,746.86,408.37,746.86,383.47,746.86,383.47,721.96,333.67,622.36,308.77,622.36,209.17,622.36,283.87,721.96,209.17,721.96,184.27,721.96,184.27,746.86,209.17,746.86,184.27,821.56,184.27,846.46,209.17,921.16,209.17,946.06]},{"k":"line","c":"#fffff8","s":"x","d":[1100,300,1450,300],"p":[707.17,846.46,881.47,846.46]},{"k":"line","c":"#c4501b","s":"x","d":[1100,300,1450,300],"p":[707.17,846.46,881.47,846.46]},{"k":"line","c":"#fffff8","s":"xy","d":[1500,500,1250,550],"p":[906.37,746.86,781.87,721.96]},{"k":"line","c":"#c4501b","s":"xy","d":[1500,500,1250,550],"p":[906.37,746.86,781.87,721.96],"r":4.08},{"k":"line","c":"#fffff8","s":"x","d":[1100,300,1250,550],"p":[707.17,846.46,781.87,721.96]},{"k":"line","c":"#1d5fa6","s":"x","d":[1100,300,1250,550],"p":[707.17,846.46,781.87,721.96]},{"k":"line","c":"#fffff8","s":"x","d":[1450,300,1500,500],"p":[881.47,846.46,906.37,746.86]},{"k":"line","c":"#1d5fa6","s":"x","d":[1450,300,1500,500],"p":[881.47,846.46,906.37,746.86]},{"k":"scatter","c":"#5b6b7c","s":"xy","d":[100,100,200,100,700,100,1000,100,1100,100,100,150,200,150,1000,150,1100,150,50,300,600,300,950,300,1100,300,1450,300,50,350,250,350,400,350,750,350,1450,350,50,500,100,500,450,500,500,500,700,500,900,500,1050,500,1300,500,1500,500,50,550,100,550,250,550,450,550,650,550,850,550,900,550,1250,550,1500,550,1050,700,1550,700,100,750,300,750,350,750,550,750,600,750,800,750,1050,750,1100,750,1300,750,1350,750,1550,750],"p":[209.17,946.06,258.97,946.06,507.97,946.06,657.37,946.06,707.17,946.06,209.17,921.16,258.97,921.16,657.37,921.16,707.17,921.16,184.27,846.46,458.17,846.46,632.47,846.46,707.17,846.46,881.47,846.46,184.27,821.56,283.87,821.56,358.57,821.56,532.87,821.56,881.47,821.56,184.27,746.86,209.17,746.86,383.47,746.86,408.37,746.86,507.97,746.86,607.57,746.86,682.27,746.86,806.77,746.86,906.37,746.86,184.27,721.96,209.17,721.96,283.87,721.96,383.47,721.96,483.07,721.96,582.67,721.96,607.57,721.96,781.87,721.96,906.37,721.96,682.27,647.26,931.27,647.26,209.17,622.36,308.77,622.36,333.67,622.36,433.27,622.36,458.17,622.36,557.77,622.36,682.27,622.36,707.17,622.36,806.77,622.36,831.67,622.36,931.27,622.36],"r":3.07},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#5c5c57"}],"lg":[]}
50
500
1,000
1,550
City x
100
400
600
750
new edges
dropped edges
City y
Generation 10 swaps 2 edges: 6,670 → 6,563
{"v":1,"box":[72.5399,122.3921,593.8264,474.1777],"x":{"s":"linear","lim":[-1.8,41.8],"inv":false,"g":0,"t":"Generation (the run stops after 30 without improvement)","tk":[[0,"0"],[10,"10"],[20,"20"],[30,"30"],[40,"40"]]},"y":{"s":"linear","lim":[6402.5,7350.56],"inv":false,"g":0,"tk":[[6563,"6,563"],[6670,"6,670"],[7000,"7,000"]]},"ti":"All 20 tours first cost the same at\ngeneration 5","a":[{"k":"line","c":"#fffff8","s":"x","d":[3,7055.75,4,6684.75,5,6670,6,6670,7,6670,8,6670,9,6670,10,6664.65,11,6643.25,12,6604.85,13,6568.35,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6580.15,40,6563],"p":[129.93,231.78,141.89,369.45,153.84,374.92,165.8,374.92,177.75,374.92,189.71,374.92,201.67,374.92,213.62,376.9,225.58,384.85,237.53,399.09,249.49,412.64,261.45,414.62,273.4,414.62,285.36,414.62,297.31,414.62,309.27,414.62,321.23,414.62,333.18,414.62,345.14,414.62,357.1,414.62,369.05,414.62,381.01,414.62,392.96,414.62,404.92,414.62,416.88,414.62,428.83,414.62,440.79,414.62,452.74,414.62,464.7,414.62,476.66,414.62,488.61,414.62,500.57,414.62,512.52,414.62,524.48,414.62,536.44,414.62,548.39,414.62,560.35,408.26,572.31,414.62]},{"k":"line","c":"#c4501b","s":"x","d":[3,7055.75,4,6684.75,5,6670,6,6670,7,6670,8,6670,9,6670,10,6664.65,11,6643.25,12,6604.85,13,6568.35,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6580.15,40,6563],"p":[129.93,231.78,141.89,369.45,153.84,374.92,165.8,374.92,177.75,374.92,189.71,374.92,201.67,374.92,213.62,376.9,225.58,384.85,237.53,399.09,249.49,412.64,261.45,414.62,273.4,414.62,285.36,414.62,297.31,414.62,309.27,414.62,321.23,414.62,333.18,414.62,345.14,414.62,357.1,414.62,369.05,414.62,381.01,414.62,392.96,414.62,404.92,414.62,416.88,414.62,428.83,414.62,440.79,414.62,452.74,414.62,464.7,414.62,476.66,414.62,488.61,414.62,500.57,414.62,512.52,414.62,524.48,414.62,536.44,414.62,548.39,414.62,560.35,408.26,572.31,414.62]},{"k":"line","c":"#fffff8","s":"x","d":[0,6670,1,6670,2,6670,3,6670,4,6670,5,6670,6,6670,7,6670,8,6670,9,6670,10,6563,11,6563,12,6563,13,6563,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6563,40,6563],"p":[94.06,374.92,106.02,374.92,117.97,374.92,129.93,374.92,141.89,374.92,153.84,374.92,165.8,374.92,177.75,374.92,189.71,374.92,201.67,374.92,213.62,414.62,225.58,414.62,237.53,414.62,249.49,414.62,261.45,414.62,273.4,414.62,285.36,414.62,297.31,414.62,309.27,414.62,321.23,414.62,333.18,414.62,345.14,414.62,357.1,414.62,369.05,414.62,381.01,414.62,392.96,414.62,404.92,414.62,416.88,414.62,428.83,414.62,440.79,414.62,452.74,414.62,464.7,414.62,476.66,414.62,488.61,414.62,500.57,414.62,512.52,414.62,524.48,414.62,536.44,414.62,548.39,414.62,560.35,414.62,572.31,414.62],"ds":"post"},{"k":"line","c":"#1d5fa6","s":"x","d":[0,6670,1,6670,2,6670,3,6670,4,6670,5,6670,6,6670,7,6670,8,6670,9,6670,10,6563,11,6563,12,6563,13,6563,14,6563,15,6563,16,6563,17,6563,18,6563,19,6563,20,6563,21,6563,22,6563,23,6563,24,6563,25,6563,26,6563,27,6563,28,6563,29,6563,30,6563,31,6563,32,6563,33,6563,34,6563,35,6563,36,6563,37,6563,38,6563,39,6563,40,6563],"p":[94.06,374.92,106.02,374.92,117.97,374.92,129.93,374.92,141.89,374.92,153.84,374.92,165.8,374.92,177.75,374.92,189.71,374.92,201.67,374.92,213.62,414.62,225.58,414.62,237.53,414.62,249.49,414.62,261.45,414.62,273.4,414.62,285.36,414.62,297.31,414.62,309.27,414.62,321.23,414.62,333.18,414.62,345.14,414.62,357.1,414.62,369.05,414.62,381.01,414.62,392.96,414.62,404.92,414.62,416.88,414.62,428.83,414.62,440.79,414.62,452.74,414.62,464.7,414.62,476.66,414.62,488.61,414.62,500.57,414.62,512.52,414.62,524.48,414.62,536.44,414.62,548.39,414.62,560.35,414.62,572.31,414.62],"ds":"post"},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"fill","c":"#c4501b"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#5c5c57"}],"lg":[]}
0
10
20
30
40
Generation (the run stops after 30 without improvement)
6,563
6,670
7,000
mean, from 32,366 off scale
worst tour
best so far improves once, −1.6%
Tour cost (TSPLIB units)
All 20 tours first cost the same at
generation 5
{"v":1,"box":[72.5399,663.2144,593.8264,889.1052],"x":{"s":"linear","lim":[-17.5,1617.5],"inv":false,"g":1,"t":"City x","tk":[[50,"50"],[500,"500"],[1000,"1,000"],[1550,"1,550"]]},"y":{"s":"linear","lim":[70.75,779.25],"inv":false,"g":1,"tk":[[100,"100"],[400,"400"],[600,"600"],[750,"750"]]},"ti":"Generation 10 swaps 2 edges: 6,670 →\n6,563","a":[{"k":"line","c":"#fffff8","s":"xy","d":[100,100,200,100,200,150,250,350,400,350,600,300,750,350,700,100,1000,100,1100,100,1100,150,1000,150,950,300,1100,300,1250,550,1300,500,1450,350,1450,300,1500,500,1500,550,1550,700,1550,750,1350,750,1300,750,1100,750,1050,750,1050,700,1050,500,900,500,900,550,850,550,800,750,600,750,550,750,650,550,700,500,500,500,450,500,450,550,350,750,300,750,100,750,250,550,100,550,50,550,50,500,100,500,50,350,50,300,100,150,100,100],"p":[110,879.78,141.89,879.78,141.89,863.84,157.83,800.07,205.65,800.07,269.42,816.01,317.24,800.07,301.3,879.78,396.95,879.78,428.83,879.78,428.83,863.84,396.95,863.84,381.01,816.01,428.83,816.01,476.66,736.31,492.6,752.25,540.42,800.07,540.42,816.01,556.36,752.25,556.36,736.31,572.31,688.48,572.31,672.54,508.54,672.54,492.6,672.54,428.83,672.54,412.89,672.54,412.89,688.48,412.89,752.25,365.07,752.25,365.07,736.31,349.12,736.31,333.18,672.54,269.42,672.54,253.48,672.54,285.36,736.31,301.3,752.25,237.53,752.25,221.59,752.25,221.59,736.31,189.71,672.54,173.77,672.54,110,672.54,157.83,736.31,110,736.31,94.06,736.31,94.06,752.25,110,752.25,94.06,800.07,94.06,816.01,110,863.84,110,879.78]},{"k":"line","c":"#5b6b7c","s":"xy","d":[100,100,200,100,200,150,250,350,400,350,600,300,750,350,700,100,1000,100,1100,100,1100,150,1000,150,950,300,1100,300,1250,550,1300,500,1450,350,1450,300,1500,500,1500,550,1550,700,1550,750,1350,750,1300,750,1100,750,1050,750,1050,700,1050,500,900,500,900,550,850,550,800,750,600,750,550,750,650,550,700,500,500,500,450,500,450,550,350,750,300,750,100,750,250,550,100,550,50,550,50,500,100,500,50,350,50,300,100,150,100,100],"p":[110,879.78,141.89,879.78,141.89,863.84,157.83,800.07,205.65,800.07,269.42,816.01,317.24,800.07,301.3,879.78,396.95,879.78,428.83,879.78,428.83,863.84,396.95,863.84,381.01,816.01,428.83,816.01,476.66,736.31,492.6,752.25,540.42,800.07,540.42,816.01,556.36,752.25,556.36,736.31,572.31,688.48,572.31,672.54,508.54,672.54,492.6,672.54,428.83,672.54,412.89,672.54,412.89,688.48,412.89,752.25,365.07,752.25,365.07,736.31,349.12,736.31,333.18,672.54,269.42,672.54,253.48,672.54,285.36,736.31,301.3,752.25,237.53,752.25,221.59,752.25,221.59,736.31,189.71,672.54,173.77,672.54,110,672.54,157.83,736.31,110,736.31,94.06,736.31,94.06,752.25,110,752.25,94.06,800.07,94.06,816.01,110,863.84,110,879.78]},{"k":"line","c":"#fffff8","s":"x","d":[1100,300,1450,300],"p":[428.83,816.01,540.42,816.01]},{"k":"line","c":"#c4501b","s":"x","d":[1100,300,1450,300],"p":[428.83,816.01,540.42,816.01]},{"k":"line","c":"#fffff8","s":"xy","d":[1500,500,1250,550],"p":[556.36,752.25,476.66,736.31]},{"k":"line","c":"#c4501b","s":"xy","d":[1500,500,1250,550],"p":[556.36,752.25,476.66,736.31],"r":4.08},{"k":"line","c":"#fffff8","s":"x","d":[1100,300,1250,550],"p":[428.83,816.01,476.66,736.31]},{"k":"line","c":"#1d5fa6","s":"x","d":[1100,300,1250,550],"p":[428.83,816.01,476.66,736.31]},{"k":"line","c":"#fffff8","s":"x","d":[1450,300,1500,500],"p":[540.42,816.01,556.36,752.25]},{"k":"line","c":"#1d5fa6","s":"x","d":[1450,300,1500,500],"p":[540.42,816.01,556.36,752.25]},{"k":"scatter","c":"#5b6b7c","s":"xy","d":[100,100,200,100,700,100,1000,100,1100,100,100,150,200,150,1000,150,1100,150,50,300,600,300,950,300,1100,300,1450,300,50,350,250,350,400,350,750,350,1450,350,50,500,100,500,450,500,500,500,700,500,900,500,1050,500,1300,500,1500,500,50,550,100,550,250,550,450,550,650,550,850,550,900,550,1250,550,1500,550,1050,700,1550,700,100,750,300,750,350,750,550,750,600,750,800,750,1050,750,1100,750,1300,750,1350,750,1550,750],"p":[110,879.78,141.89,879.78,301.3,879.78,396.95,879.78,428.83,879.78,110,863.84,141.89,863.84,396.95,863.84,428.83,863.84,94.06,816.01,269.42,816.01,381.01,816.01,428.83,816.01,540.42,816.01,94.06,800.07,157.83,800.07,205.65,800.07,317.24,800.07,540.42,800.07,94.06,752.25,110,752.25,221.59,752.25,237.53,752.25,301.3,752.25,365.07,752.25,412.89,752.25,492.6,752.25,556.36,752.25,94.06,736.31,110,736.31,157.83,736.31,221.59,736.31,285.36,736.31,349.12,736.31,365.07,736.31,476.66,736.31,556.36,736.31,412.89,688.48,572.31,688.48,110,672.54,173.77,672.54,189.71,672.54,253.48,672.54,269.42,672.54,333.18,672.54,412.89,672.54,428.83,672.54,492.6,672.54,508.54,672.54,572.31,672.54],"r":3.07},{"k":"segments","c":"#8c8c84"},{"k":"segments","c":"#8c8c84"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#2b2b28"},{"k":"annotation","c":"#5c5c57"}],"lg":[]}
50
500
1,000
1,550
City x
100
400
600
750
new edges
dropped edges
City y
Generation 10 swaps 2 edges: 6,670 →
6,563
Over 40 generations, mean tour cost fell from 32,366 to 6,563. The best tour fell from 6,670 to 6,563. The run uses 50 cities and seed 42. Hover or focus a chart for exact values. Drawn by demo.ts at build time, from the fixtures the benchmark uses; it reproduces the README figure.
git clone https://github.com/jkomyno/knotkit.git && cd knotkit && bun install
problems/tsp/README.md states the fixture, the seed, and the result table.