Class PenaltyFunction
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.general.penaltymethod.PenaltyFunction
-
- 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface dev.nm.analysis.function.Function
Function.EvaluationException
-
-
Constructor Summary
Constructors Constructor Description PenaltyFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
dimensionOfRange()
Get the dimension of the range space of the function.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.nm.analysis.function.Function
dimensionOfDomain, evaluate
-
-
-
-
Method Detail
-
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 interfaceFunction<Vector,Double>
- Returns:
- the dimension of the range
-
-