All Implemented Interfaces:
Function<Vector,Double>, RealScalarFunction
Direct Known Subclasses:
MultiplierPenalty, SumOfPenalties, ZeroPenalty

public abstract class PenaltyFunction extends Object implements RealScalarFunction
A function P: Rn -> R is a penalty function for a constrained optimization problem if it has these properties.
  • P is continuous;
  • P(x) >= 0;
  • P(x) = 0 if x is feasible; i.e., all constraints are satisfied
  • Constructor Details

    • PenaltyFunction

      public PenaltyFunction()
  • Method Details

    • dimensionOfRange

      public int dimensionOfRange()
      Description copied from interface: Function
      Get the dimension of the range space of the function. For example, for a Rn->Rm function, the dimension of the range is m.
      Specified by:
      dimensionOfRange in interface Function<Vector,Double>
      the dimension of the range