public class WeightedIndexEvaluation extends Object implements org.jamesframework.core.problems.objectives.evaluations.Evaluation
Constructor and Description |
---|
WeightedIndexEvaluation()
Create an empty evaluation.
|
Modifier and Type | Method and Description |
---|---|
void |
addEvaluation(org.jamesframework.core.problems.objectives.Objective obj,
org.jamesframework.core.problems.objectives.evaluations.Evaluation eval,
double weight)
Add an evaluation produced by an objective, specifying its weight.
|
org.jamesframework.core.problems.objectives.evaluations.Evaluation |
getEvaluation(org.jamesframework.core.problems.objectives.Objective obj)
Get a previously added evaluation produced by a specific objective.
|
double |
getValue()
The value consist of the weighted sum of the values of all added evaluations.
|
public WeightedIndexEvaluation()
public void addEvaluation(org.jamesframework.core.problems.objectives.Objective obj, org.jamesframework.core.problems.objectives.evaluations.Evaluation eval, double weight)
obj
- objectiveeval
- produced evaluationweight
- assigned weightpublic org.jamesframework.core.problems.objectives.evaluations.Evaluation getEvaluation(org.jamesframework.core.problems.objectives.Objective obj)
null
is returned.obj
- objectivenull
public double getValue()
getValue
in interface org.jamesframework.core.problems.objectives.evaluations.Evaluation
Copyright © 2015. All rights reserved.