code: @Override
    public void evaluate(DoubleSolution solution) {
      double x1,x2,x3,x4,x5,x6,x7;
      x1 = solution.getVariableValue(0);
      x2 = solution.getVariableValue(1);
      x3 = solution.getVariableValue(2);
      x4 = solution.getVariableValue(3);
      x5 = solution.getVariableValue(4);
      x6 = solution.getVariableValue(5);
      x7 = solution.getVariableValue(6);
  
      double f1 = 0.7854 * x1 *x2 *x2 * ((10*x3*x3)/3.0 + 14.933*x3 - 43.0934) -
          1.508*x1*(x6*x6 + x7*x7)+7.477*(x6*x6*x6 + x7*x7*x7) +
          0.7854*(x4*x6*x6 + x5*x7*x7);
  
      double aux = 745.0 * x4 / (x2 * x3);
      double f2 = Math.sqrt((aux*aux)+1.69e7) / (0.1*x6*x6*x6);
  
      solution.setObjective(0,f1);
      solution.setObjective(1,f2);
  
      this.evaluateConstraints(solution);
    }
docs: Evaluate() method