Documentation of 'org.apache.commons.math3.optim.nonlinear.scalar.noderiv.AbstractSimplex' Java class
AbstractSimplex
org.apache.commons.math3.optim.nonlinear.scalar.noderiv

Class AbstractSimplex

    • Method Detail

      • getDimension

        public int getDimension()
        Get simplex dimension.
        Returns:
        the dimension of the simplex.
      • getSize

        public int getSize()
        Get simplex size. After calling the build method, this method will will be equivalent to getDimension() + 1.
        Returns:
        the size of the simplex.
      • iterate

        public abstract void iterate(MultivariateFunction evaluationFunction,
                                     java.util.Comparator<PointValuePair> comparator)
        Compute the next simplex of the algorithm.
        Parameters:
        evaluationFunction - Evaluation function.
        comparator - Comparator to use to sort simplex vertices from best to worst.
        Throws:
        TooManyEvaluationsException - if the algorithm fails to converge.
      • build

        public void build(double[] startPoint)
        Build an initial simplex.
        Parameters:
        startPoint - First point of the simplex.
        Throws:
        DimensionMismatchException - if the start point does not match simplex dimension.
      • evaluate

        public void evaluate(MultivariateFunction evaluationFunction,
                             java.util.Comparator<PointValuePair> comparator)
        Evaluate all the non-evaluated points of the simplex.
        Parameters:
        evaluationFunction - Evaluation function.
        comparator - Comparator to use to sort simplex vertices from best to worst.
        Throws:
        TooManyEvaluationsException - if the maximal number of evaluations is exceeded.
      • getPoints

        public PointValuePair[] getPoints()
        Get the points of the simplex.
        Returns:
        all the simplex points.
      • getPoint

        public PointValuePair getPoint(int index)
        Get the simplex point stored at the requested index.
        Parameters:
        index - Location.
        Returns:
        the point at location index.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.