public void evaluate(DoubleSolution solution) {
    double[] f = new double[getNumberOfObjectives()];

    double g = this.evalG(solution);
    f[0] = (1 + g) * solution.getVariableValue(0) * solution.getVariableValue(1);
    f[1] = (1 + g) * solution.getVariableValue(0) * (1 - solution.getVariableValue(1));
    f[2] = (1 + g) * (1 - solution.getVariableValue(0));

    solution.setObjective(0, f[0]);
    solution.setObjective(1, f[1]);
    solution.setObjective(2, f[2]);
  }
public void evaluate ( DoubleSolution solution ) { double [ ] f = new double [ getNumberOfObjectives ( ) ] ; double g = this . evalG ( solution ) ; f [ 0 ] = ( 1 + g ) * solution . getVariableValue ( 0 ) * solution . getVariableValue ( 1 ) ; f [ 1 ] = ( 1 + g ) * solution . getVariableValue ( 0 ) * ( 1 - solution . getVariableValue ( 1 ) ) ; f [ 2 ] = ( 1 + g ) * ( 1 - solution . getVariableValue ( 0 ) ) ; solution . setObjective ( 0 , f [ 0 ] ) ; solution . setObjective ( 1 , f [ 1 ] ) ; solution . setObjective ( 2 , f [ 2 ] ) ; }
Evaluate() method