public final class EmasAgentComparators
extends java.lang.Object
Comparators for EMAS agents.
Modifier | Constructor and Description |
---|---|
private |
EmasAgentComparators() |
Modifier and Type | Method and Description |
---|---|
private static double |
getFitnessProportion(EmasAgent first,
EmasAgent second)
This method returns probability (from [0 ; 1] range) that the first agent should be chosen as the one having bigger fitness than the second agent.
|
static java.util.Comparator<EmasAgent> |
higherFitness()
Ordering from higher to lower fitness.
|
static java.util.Comparator<EmasAgent> |
higherFitnessProbabilistic()
Higher fitness probabilistic comparator, where agents have winning probability proportional to their fitness.
|
static java.util.Comparator<EmasAgent> |
lowerFitness()
Ordering from lower to higher fitness.
|
static java.util.Comparator<EmasAgent> |
lowerFitnessProbabilistic()
Lower fitness probabilistic comparator, where agents have winning probability inversely proportional to their fitness.
|
public static java.util.Comparator<EmasAgent> higherFitness()
Ordering from higher to lower fitness.
public static java.util.Comparator<EmasAgent> lowerFitness()
Ordering from lower to higher fitness.
public static java.util.Comparator<EmasAgent> higherFitnessProbabilistic()
Higher fitness probabilistic comparator, where agents have winning probability proportional to their fitness.
public static java.util.Comparator<EmasAgent> lowerFitnessProbabilistic()
Lower fitness probabilistic comparator, where agents have winning probability inversely proportional to their fitness.
private static double getFitnessProportion(EmasAgent first, EmasAgent second)
This method returns probability (from [0 ; 1] range) that the first agent should be chosen as the one having bigger fitness than the second agent.
first
- the first agentsecond
- the second agent