code: def __init__(self):
      for i in range(dimension):
          self.pos.append(random.random())
          self.velocity.append(0.01 * random.random())
          self.pBest.append(self.pos[i])
      return
  
file_path: advisor/advisor_server/suggestion/algorithm/particle_swarm_optimization.py
imports: from __future__ import print_function
  import json
  import random
  from suggestion.models import Study
  from suggestion.models import Trial
  from suggestion.algorithm.abstract_algorithm import AbstractSuggestionAlgorithm
label_desc: Use image node_id 1 to create a new Particle object  with example: obj = Particle()