Class FletcherPenalty

    • Constructor Detail

      • FletcherPenalty

        public FletcherPenalty​(LessThanConstraints constraints,
                               double[] weights)
        Construct a Fletcher penalty function from a collection of inequality constraints.
        Parameters:
        constraints - a collection of inequality constraints
        weights - the weights assigned to the constraints
      • FletcherPenalty

        public FletcherPenalty​(LessThanConstraints constraints,
                               double weight)
        Construct a Fletcher penalty function from a collection of inequality constraints. We assign the same weight to all constraints.
        Parameters:
        constraints - a collection of inequality constraints
        weight - the same weight assigned to the constraints
      • FletcherPenalty

        public FletcherPenalty​(LessThanConstraints constraints)
        Construct a Fletcher penalty function from a collection of inequality constraints. We assign the same default weight to all constraints.
        Parameters:
        constraints - a collection of inequality constraints
    • Method Detail

      • evaluate

        public Double evaluate​(Vector x)
        Description copied from interface: Function
        Evaluate the function f at x, where x is from the domain.
        Parameters:
        x - x
        Returns:
        f(x)