Package org.opt4j.core.domination
Class ParetoDomination
- java.lang.Object
-
- org.opt4j.core.domination.ParetoDomination
-
- All Implemented Interfaces:
DominationStrategy
public class ParetoDomination extends Object implements DominationStrategy
TheDominationStrategy
Pareto-Domination.- See Also:
DominationStrategy
-
-
Constructor Summary
Constructors Constructor Description ParetoDomination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
dominates(double[] va, double[] vb)
boolean
dominates(Objectives o1, Objectives o2)
Checks twoObjectives
for domination.boolean
weaklyDominates(double[] va, double[] vb)
boolean
weaklyDominates(Objectives o1, Objectives o2)
Checks twoObjectives
for weak domination.
-
-
-
Method Detail
-
dominates
public boolean dominates(Objectives o1, Objectives o2)
Checks twoObjectives
for domination. The dominance relation is Pareto-Domination.- Specified by:
dominates
in interfaceDominationStrategy
- Parameters:
o1
- the objectives to checko2
- the objectives to compare with- Returns:
true
, ifo1
dominateso2
false
, otherwise
-
dominates
public boolean dominates(double[] va, double[] vb)
- Parameters:
va
- array of objective valuesvb
- array of objective values- Returns:
true
, ifva
dominatesvb
,false
, otherwise
-
weaklyDominates
public boolean weaklyDominates(Objectives o1, Objectives o2)
Checks twoObjectives
for weak domination. The dominance relation is Pareto-Domination.- Specified by:
weaklyDominates
in interfaceDominationStrategy
- Parameters:
o1
- the objectives to checko2
- the objectives to compare with- Returns:
true
, ifo1
weakly dominateso2
false
, otherwise
-
weaklyDominates
public boolean weaklyDominates(double[] va, double[] vb)
- Parameters:
va
- array of objective valuesvb
- array of objective values- Returns:
true
, ifva
weakly dominatesvb
,false
, otherwise
-
-