gov.sns.tools.optimization
Interface Evaluator


Deprecated. The optimization package has been replaced by the optimizer package.

public interface Evaluator

Evaluator is an interface to a custom evaluator for a specific problem. The evaluator indicates to the search algorithm whether to evaluate a trial point and if so what the score of the trial point is. Optimization is a search in a constrained space of points for a solution with an optimal score. Each problem has a custom evaluator that scores trial points so that the search algorithm can make a directed search for the best solution.


Method Summary
 boolean accept(TrialPoint point)
          Deprecated. Determine whether the trial point is worth evaluating.
 double score(TrialPoint point)
          Deprecated. Score the trial point.
 

Method Detail

accept

public boolean accept(TrialPoint point)
Deprecated. 
Determine whether the trial point is worth evaluating. If the point violates a constraint then we shouldn't bother to evaluate it. The solver's search domain is a hyper-rectangle. This method is useful when the search domain is more complex than a hyper-rectangle.

Parameters:
point - The trial point to test.
Returns:
true if the evaluator should score the point and false if not.

score

public double score(TrialPoint point)
Deprecated. 
Score the trial point. Higher scores are more optimal.

Parameters:
point - The trial point to score.
Returns:
The score indicating how satisfied the evaluator is with the trial point.