SingleObjectiveResult class
A subclass of FitnessResult that is just a single value (of type double).
- Inheritance
-
- Object
- FitnessResult
- SingleObjectiveResult
Constructors
- SingleObjectiveResult(double value)
- Creates a new single objective result with value.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- paretoRank ↔ int
-
Pareto rank of the fitness result. This is computed and assigned
in
GeneticAlgorithm._assignParetoRanks
.getter/setter pairinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ double
-
The actual value of the result. Following convention, the lower the value,
the better the result.
getter/setter pair
Methods
-
compareTo(
FitnessResult other) → int -
Fitness results compare according to their paretoRank first and
then according to the result of evaluate.
inherited
-
dominates(
covariant SingleObjectiveResult other) → bool -
A result dominates other results if it's better in every aspect.
override
-
evaluate(
) → double -
Evaluates to a single numeric value. This goes against
the multi-dimensionality of this class, but it's sometimes useful.
For example, fitness sharing needs it, and it's easier for printing
to the user.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited