- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface ValueBiasedStochasticSampling.BiasFunction
Implement this interface to implement the bias function used by VBSS. Specifically, when making a randomized decision among possible permutation elements to add to the permutation, VBSS choose randomly but biased by a function of the heuristic value. If value is the heuristic evaluation of permutation element e, then e will be added to the permutation with a probability proportional to bias(value). How you implement this depends upon how much confidence you have in the specific heuristic you are randomizing.
(double value)This method is the bias function.
value- The heuristic value of one of the elements under consideration for addition to the permutation.
- the bias function applied to that value