Package org.uma.jmetal.util
Class ReferencePointUtils
java.lang.Object
org.uma.jmetal.util.ReferencePointUtils
Utility class for reference point operations in multi-objective optimization. Provides methods to
convert between reference points and reference fronts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double[][]createReferenceFrontFromReferencePoint(double[] referencePoint) Creates a reference front from a reference point.static double[]extractReferencePointFromReferenceFront(double[][] referenceFront) Extracts a reference point from a reference front.
-
Constructor Details
-
ReferencePointUtils
public ReferencePointUtils()
-
-
Method Details
-
createReferenceFrontFromReferencePoint
public static double[][] createReferenceFrontFromReferencePoint(double[] referencePoint) Creates a reference front from a reference point. The reference front will have n points where n is the dimension of the reference point, with each point having all objectives at 0 except for one objective which is set to the reference point's corresponding value.- Parameters:
referencePoint- The reference point- Returns:
- A reference front generated from the reference point
- Throws:
IllegalArgumentException- if referencePoint is null or empty
-
extractReferencePointFromReferenceFront
public static double[] extractReferencePointFromReferenceFront(double[][] referenceFront) Extracts a reference point from a reference front. The reference point is created by taking the maximum value in each objective dimension across all points in the front.- Parameters:
referenceFront- The reference front- Returns:
- A reference point derived from the reference front
- Throws:
IllegalArgumentException- if referenceFront is null, empty, or contains null points
-