protected static double achievementScalarizingFunction(Solution solution,double[] weights){
  double max=Double.NEGATIVE_INFINITY;
  double[] objectives=(double[])solution.getAttribute(NORMALIZED_OBJECTIVES);
  for (int i=0; i < solution.getNumberOfObjectives(); i++) {
    max=Math.max(max,objectives[i] / weights[i]);
  }
  return max;
}

protected static double achievementScalarizingFunction ( Solution solution , double [ ] weights ) { double max = Double . NEGATIVE_INFINITY ; double [ ] objectives = ( double [ ] ) solution . getAttribute ( NORMALIZED_OBJECTIVES ) ; for ( int i = 0 ; i < solution . getNumberOfObjectives ( ) ; i ++ ) { max = Math . max ( max , objectives [ i ] / weights [ i ] ) ; } return max ; }
the chebyshev achievement scalarizing function .
