Modify the getProblem method in src/org/moeaframework/problem/StandardProblems.java to create an instance of your problem. This lets you reference your problem by name.
Modify the getReferenceSet method in src/org/moeaframework/problem/StandardProblems.java to load and return a reference set for your problem. This is required to compute the performance metrics (e.g., hypervolume). If you do not have a reference set, you can skip this step but you will need to turn off the calculation of performance metrics in the Diagnostic Tool.
At this point, you can run the Diagnostic Tool and manually type the problem name into the field.
You can also have your problem appear in the drop-down list rather than having to manually type the problem name each time:
Open src/org/moeaframework/core/Settings.java and find the method getDiagnosticToolProblems(). Add your problem to this list.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
Hi,
The steps I use to add a new problem are:
getProblem
method insrc/org/moeaframework/problem/StandardProblems.java
to create an instance of your problem. This lets you reference your problem by name.getReferenceSet
method insrc/org/moeaframework/problem/StandardProblems.java
to load and return a reference set for your problem. This is required to compute the performance metrics (e.g., hypervolume). If you do not have a reference set, you can skip this step but you will need to turn off the calculation of performance metrics in the Diagnostic Tool.At this point, you can run the Diagnostic Tool and manually type the problem name into the field.
You can also have your problem appear in the drop-down list rather than having to manually type the problem name each time:
src/org/moeaframework/core/Settings.java
and find the methodgetDiagnosticToolProblems()
. Add your problem to this list.