" if (particles[i].get_pBest_distance() <= Maximum_distance):\n",
" done = True \n",
" if (particles[i].get_pBest_distance() <= Maximum_distance) and (particles[i].get_pBest_cost() <= Maximum_cost) and (Weather>=20 and Weather<=28):\n",
" if (Weather >= 20) and (Weather <=28):\n",
" done = True \n",
" quicksort(particles, 0, len(particles) - 1)\n",
" # list has to sorted in order for get_velocity() to work.\n",