code: @Override
    public void evaluate(DoubleSolution solution)  {
      double[] fx = new double[solution.getNumberOfObjectives()];
      double[] x = new double[solution.getNumberOfVariables()];
      for (int i = 0; i < solution.getNumberOfVariables(); i++) {
        x[i] = solution.getVariableValue(i) ;
      }
  
      fx[0] = 106780.37 * (x[1] + x[2]) + 61704.67 ;
      fx[1] = 3000 * x[0] ;
      fx[2] = 305700 * 2289 * x[1] / Math.pow(0.06*2289, 0.65) ;
      fx[3] = 250 * 2289 * Math.exp(-39.75*x[1]+9.9*x[2]+2.74) ;
      fx[4] = 25 * (1.39 /(x[0]*x[1]) + 4940*x[2] -80) ;
  
      solution.setObjective(0,fx[0]);
      solution.setObjective(1,fx[1]);
      solution.setObjective(2,fx[2]);
      solution.setObjective(3,fx[3]);
      solution.setObjective(4,fx[4]);
  
      this.evaluateConstraints(solution);
    }
docs: Evaluate() method