question: public double expectedUtility ( NondominatedPopulation population ) { double sum = 0.0 ; for ( int i = 0 ; i < weights . length ; i ++ ) { double max = Double . NEGATIVE_INFINITY ; for ( Solution solution : population ) { max = Math . max ( max , utilityFunction . computeUtility ( solution , weights [ i ] ) ) ; } sum += max ; } return sum / weights . length ; }
target:  Computes the expected utility for the given population.