In order to calculate the performance metrics of the algorithms you need to use the Instrumenter class as explained in the Setup Guide. Moreover, to output the metric values you use the Accumulator class.
In order to use compile the new Java file with these new instruments, you need to include the corresponding classes by adding the following lines to the beginning of your .java file:
In order to connect an external problem and reference it as “myProblem” (see Section 5.2 of MOEAFramework manual), the easiest way is to use the global.properties file: it is only necessary to create (or modify) a file called global.properties and save it in your current directory. Only two lines have to be written:
org.moeaframework.problem.problems = myProblem
org.moeaframework.problem.myProblem.class = myProblem