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
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 -
Method Summary
Modifier and TypeMethodDescriptionint
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
-
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 interfaceFunction<Vector,
Double> - Returns:
- the dimension of the range
-