-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot-simple-fo.py
12 lines (9 loc) · 12.2 KB
/
plot-simple-fo.py
1
2
3
4
5
6
7
8
9
10
11
12
import matplotlib.pyplot as plt
from matplotlib.ticker import NullFormatter # useful for `logit` scale
FOs = [{'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 39.2, 'power': 42.0, 'of': -130.94}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 47.6, 'power': 42.0, 'of': -111.24399999999997}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 56.0, 'power': 42.0, 'of': -93.22}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 64.4, 'power': 42.0, 'of': -74.976}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 64.4, 'power': 51.0, 'of': 144.652}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 72.8, 'power': 42.0, 'of': -58.52400000000003}, {'lat': -21.222768035349166, 'lng': -44.97706843930947, 'height': 72.8, 'power': 51.0, 'of': 177.092}, {'lat': -21.2232355324757, 'lng': -44.980804836844214, 'height': 39.2, 'power': 42.0, 'of': -110.29599999999999}, {'lat': -21.2232355324757, 'lng': -44.980804836844214, 'height': 47.6, 'power': 42.0, 'of': -90.49999999999997}, {'lat': -21.2232355324757, 'lng': -44.980804836844214, 'height': 56.0, 'power': 42.0, 'of': -73.77199999999999}, {'lat': -21.2232355324757, 'lng': -44.980804836844214, 'height': 64.4, 'power': 42.0, 'of': -58.59200000000001}, {'lat': -21.2232355324757, 'lng': -44.980804836844214, 'height': 72.8, 'power': 42.0, 'of': -44.77199999999999}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 39.2, 'power': 42.0, 'of': -101.80399999999997}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 39.2, 'power': 51.0, 'of': 104.20800000000003}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 47.6, 'power': 42.0, 'of': -83.27600000000001}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 56.0, 'power': 42.0, 'of': -67.04800000000003}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 56.0, 'power': 51.0, 'of': 171.12800000000001}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 56.0, 'power': 78.0, 'of': 694.26}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 64.4, 'power': 42.0, 'of': -52.27599999999998}, {'lat': -21.22345617331082, 'lng': -44.97882015383907, 'height': 72.8, 'power': 42.0, 'of': -39.22799999999998}, {'lat': -21.223571424305284, 'lng': -44.97521470970552, 'height': 39.2, 'power': 42.0, 'of': -92.088}, {'lat': -21.223571424305284, 'lng': -44.97521470970552, 'height': 47.6, 'power': 42.0, 'of': -74.16799999999998}, {'lat': -21.223571424305284, 'lng': -44.97521470970552, 'height': 56.0, 'power': 42.0, 'of': -57.391999999999996}, {'lat': -21.223571424305284, 'lng': -44.97521470970552, 'height': 64.4, 'power': 42.0, 'of': -42.644000000000005}, {'lat': -21.223571424305284, 'lng': -44.97521470970552, 'height': 72.8, 'power': 42.0, 'of': -28.887999999999977}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 39.2, 'power': 42.0, 'of': -67.424}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 39.2, 'power': 60.0, 'of': 517.2239999999999}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 39.2, 'power': 69.0, 'of': 662.4719999999999}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 47.6, 'power': 42.0, 'of': -49.98399999999998}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 56.0, 'power': 42.0, 'of': -34.920000000000016}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 56.0, 'power': 51.0, 'of': 219.64}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 56.0, 'power': 60.0, 'of': 566.54}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 56.0, 'power': 78.0, 'of': 696.576}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 64.4, 'power': 42.0, 'of': -21.560000000000002}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 64.4, 'power': 69.0, 'of': 676.1800000000001}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 64.4, 'power': 78.0, 'of': 697.188}, {'lat': -21.222903643448394, 'lng': -44.971665304779734, 'height': 72.8, 'power': 42.0, 'of': -8.69599999999997}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 39.2, 'power': 42.0, 'of': -50.867999999999995}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 39.2, 'power': 51.0, 'of': 193.18}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 39.2, 'power': 69.0, 'of': 670.088}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 39.2, 'power': 78.0, 'of': 696.3280000000001}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 47.6, 'power': 42.0, 'of': -35.831999999999994}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 56.0, 'power': 42.0, 'of': -22.127999999999986}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 64.4, 'power': 42.0, 'of': -8.623999999999967}, {'lat': -21.223601964785495, 'lng': -44.972126784619846, 'height': 72.8, 'power': 42.0, 'of': 5.271999999999991}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 39.2, 'power': 42.0, 'of': -54.355999999999995}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 39.2, 'power': 51.0, 'of': 215.48000000000002}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 47.6, 'power': 42.0, 'of': -38.067999999999955}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 47.6, 'power': 51.0, 'of': 249.80799999999996}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 56.0, 'power': 42.0, 'of': -20.924000000000007}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 64.4, 'power': 42.0, 'of': -3.9799999999999898}, {'lat': -21.22650793382981, 'lng': -44.974883196009905, 'height': 72.8, 'power': 42.0, 'of': 12.379999999999995}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 39.2, 'power': 42.0, 'of': -70.77200000000002}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 47.6, 'power': 42.0, 'of': -55.551999999999964}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 47.6, 'power': 51.0, 'of': 211.192}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 56.0, 'power': 42.0, 'of': -39.668000000000006}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 56.0, 'power': 51.0, 'of': 245.372}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 56.0, 'power': 78.0, 'of': 697.056}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 64.4, 'power': 42.0, 'of': -24.055999999999955}, {'lat': -21.225441378951523, 'lng': -44.97774259617032, 'height': 72.8, 'power': 42.0, 'of': -9.584000000000003}, {'lat': -21.225145180739826, 'lng': -44.974517464623894, 'height': 39.2, 'power': 42.0, 'of': -60.964}, {'lat': -21.225145180739826, 'lng': -44.974517464623894, 'height': 47.6, 'power': 42.0, 'of': -44.964}, {'lat': -21.225145180739826, 'lng': -44.974517464623894, 'height': 56.0, 'power': 42.0, 'of': -29.50799999999998}, {'lat': -21.225145180739826, 'lng': -44.974517464623894, 'height': 64.4, 'power': 42.0, 'of': -14.724000000000075}, {'lat': -21.22537366539022, 'lng': -44.973303068618115, 'height': 39.2, 'power': 42.0, 'of': -44.843999999999994}, {'lat': -21.22537366539022, 'lng': -44.973303068618115, 'height': 47.6, 'power': 42.0, 'of': -29.17199999999997}, {'lat': -21.22537366539022, 'lng': -44.973303068618115, 'height': 56.0, 'power': 42.0, 'of': -13.604000000000013}, {'lat': -21.22537366539022, 'lng': -44.973303068618115, 'height': 64.4, 'power': 42.0, 'of': 1.3719999999999288}, {'lat': -21.22537366539022, 'lng': -44.973303068618115, 'height': 72.8, 'power': 42.0, 'of': 16.876000000000005}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 39.2, 'power': 42.0, 'of': -7.69199999999995}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 39.2, 'power': 51.0, 'of': 288.96400000000006}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 39.2, 'power': 60.0, 'of': 600.696}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 39.2, 'power': 69.0, 'of': 682.3120000000001}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 39.2, 'power': 78.0, 'of': 697.464}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 47.6, 'power': 42.0, 'of': 7.904000000000025}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 47.6, 'power': 69.0, 'of': 685.168}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 47.6, 'power': 78.0, 'of': 697.968}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 56.0, 'power': 42.0, 'of': 23.50799999999998}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 64.4, 'power': 42.0, 'of': 38.872000000000014}, {'lat': -21.22460679000056, 'lng': -44.970318114129384, 'height': 72.8, 'power': 42.0, 'of': 55.46799999999996}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 39.2, 'power': 42.0, 'of': 12.688000000000017}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 47.6, 'power': 42.0, 'of': 28.19999999999999}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 56.0, 'power': 51.0, 'of': 394.1159999999999}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 56.0, 'power': 69.0, 'of': 688.424}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 56.0, 'power': 78.0, 'of': 698.356}, {'lat': -21.224760927328912, 'lng': -44.968680982551376, 'height': 64.4, 'power': 42.0, 'of': 60.45599999999999}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 39.2, 'power': 42.0, 'of': -36.084}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 47.6, 'power': 42.0, 'of': -17.335999999999956}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 56.0, 'power': 42.0, 'of': -0.10000000000005116}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 56.0, 'power': 60.0, 'of': 604.956}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 56.0, 'power': 69.0, 'of': 681.94}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 56.0, 'power': 78.0, 'of': 695.752}, {'lat': -21.225908887294224, 'lng': -44.96625550028057, 'height': 64.4, 'power': 42.0, 'of': 16.767999999999972}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 39.2, 'power': 42.0, 'of': 76.67200000000003}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 47.6, 'power': 42.0, 'of': 96.01199999999997}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 42.0, 'of': 134.29200000000003}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 51.0, 'of': 505.664}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 60.0, 'of': 662.532}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 69.0, 'of': 693.552}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 78.0, 'of': 699.688}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 72.8, 'power': 42.0, 'of': 153.71200000000005}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 72.8, 'power': 51.0, 'of': 522.9680000000001}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 39.2, 'power': 42.0, 'of': 47.512}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 47.6, 'power': 42.0, 'of': 66.93599999999995}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 56.0, 'power': 42.0, 'of': 86.15600000000003}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 56.0, 'power': 60.0, 'of': 649.1840000000001}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 56.0, 'power': 78.0, 'of': 699.052}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 64.4, 'power': 42.0, 'of': 105.22000000000008}, {'lat': -21.22758158898211, 'lng': -44.96701973056145, 'height': 72.8, 'power': 42.0, 'of': 124.0}, {'lat': -21.228004857501524, 'lng': -44.96663171818059, 'height': 64.4, 'power': 78.0, 'of': 699.688}]
FOs_to_plot = [item['of'] for item in FOs]
plt.plot(FOs_to_plot)
plt.title("Comportamento do Simulated Annealing \n (Two-rays ground reflection)")
plt.ylabel('Valor da FO')
plt.xlabel('Solução candidata')
plt.show()