All Implemented Interfaces:
Function<Vector,Double>, RealScalarFunction

public class FletcherPenalty extends MultiplierPenalty
This penalty function sums up the squared costs penalties. It applies to inequality constrained problems.
  • Constructor Details

    • 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 Details

    • 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)