Class BruteForceMinimizer<R extends Comparable<R>>

  • Type Parameters:
    R - the range of a function
    All Implemented Interfaces:
    Optimizer<Function<Vector,​R>,​BruteForceMinimizer.Solution>

    public class BruteForceMinimizer<R extends Comparable<R>>
    extends Object
    implements Optimizer<Function<Vector,​R>,​BruteForceMinimizer.Solution>
    This implementation solves an unconstrained minimization problem by brute force search for all given possible values. It works for small problems, and allows doing exploratory work in the search space. The drawbacks are that: (1) the domains must be enumerable, hence bounded and known; (2) the result may not be optimal; (3) the performance is very slow.