code: public int findRegion(int idx) {
  
      for (int i = 0; i < populationSize; i++) {
        if (subregionIdx[i][idx] == 1) {
          return i;
        }
      }
  
      return -1;
    }
docs: find the subregion of the 'idx'th solution in the population