Best Position for a Service Centre (Simulated Annealing)
linkclassSolution{public:intn;doubleeps=1E-6;constintdx[4]={-1,0,1,0};constintdy[4]={0,1,0,-1};doublegetMinDistSum(vector>&positions){n=positions.size();doublexavg=0.0;doubleyavg=0.0;for(auto&p:positi