code: public void evaluate(BinarySolution solution) {
      double[] f = new double[solution.getNumberOfObjectives()];
      f[0] = 1 + u(solution.getVariableValue(0));
      double g = evalG(solution);
      double h = evalH(f[0], g);
      f[1] = h * g;
  
      solution.setObjective(0, f[0]);
      solution.setObjective(1, f[1]);
    }
docs: Evaluate() method