docs: public void setLocation(S indiv, double[] z_, double[] nz_) {
  
      int minIdx;
      double distance, minDist;
  
      minIdx = 0;
      distance = calculateDistance2(indiv, lambda[0], z_, nz_);
      minDist = distance;
      for (int i = 1; i < populationSize; i++) {
        distance = calculateDistance2(indiv, lambda[i], z_, nz_);
        if (distance < minDist) {
          minIdx = i;
          minDist = distance;
        }
      }
      //indiv.setRegion(minIdx);
      indiv.setAttribute("region", minIdx);
      //indiv.Set_associateDist(minDist);
  //        indiv.setAttribute(ATTRIBUTES.DIST, minDist);
  
    }