public class WeightedIndexEvaluation extends Object implements Evaluation
| Constructor and Description |
|---|
WeightedIndexEvaluation()
Create an empty evaluation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvaluation(Objective obj,
Evaluation eval,
double weight)
Add an evaluation produced by an objective, specifying its weight.
|
Evaluation |
getEvaluation(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.
|
String |
toString()
Format value as string.
|
public WeightedIndexEvaluation()
public void addEvaluation(Objective obj, Evaluation eval, double weight)
obj - objectiveeval - produced evaluationweight - assigned weightpublic Evaluation getEvaluation(Objective obj)
null is returned.obj - objectivenullpublic double getValue()
getValue in interface EvaluationCopyright © 2016. All rights reserved.