Interface SimplexOptimizer.Observer

  • Enclosing class:
    SimplexOptimizer
    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 SimplexOptimizer.Observer
    Callback interface for updating caller's code with the current state of the optimization.
    • Method Detail

      • update

        void update​(Simplex simplex,
                    boolean isInit,
                    int numEval)
        Method called after each modification of the simplex.
        Parameters:
        simplex - Current simplex.
        isInit - true at the start of a new search (either "main" or "best list"), after the initial simplex's vertices have been evaluated.
        numEval - Number of evaluations of the objective function.