|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction
com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.SumOfPenalties
public class SumOfPenalties
This penalty function sums up the costs from a set of constituent penalty functions. This allows us to build a new penalty function from existing ones. It applies to any constrained optimization problems.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.numericalmethod.suanshu.analysis.function.Function |
|---|
Function.EvaluationException |
| Field Summary | |
|---|---|
PenaltyFunction[] |
penalties
the constituent penalty functions |
| Fields inherited from class com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction |
|---|
dimensionality |
| Constructor Summary | |
|---|---|
SumOfPenalties(PenaltyFunction... penalties)
Construct a SumOfPenalties penalty function from a set of penalty functions. |
|
| Method Summary | |
|---|---|
double |
evaluate(double... x)
A real function, f, takes a double array double[],
{x0, x1, ..., xn}
and maps it to a double,
f(x0, x1, ..., xn) |
| Methods inherited from class com.numericalmethod.suanshu.optimization.constrained.general.penaltymethod.PenaltyFunction |
|---|
dimension4Domain, dimension4Range |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final PenaltyFunction[] penalties
| Constructor Detail |
|---|
public SumOfPenalties(PenaltyFunction... penalties)
The penalties must have the same dimension.
penalties - the constituent penalty functions| Method Detail |
|---|
public double evaluate(double... x)
RealScalarFunctionf, takes a double array double[],
and maps it to a double,{x0,x1, ...,xn}
f(x0, x1, ..., xn)
x - {x} = {x0, x1, ... xn}
f({x}) as output
|
SuanShu, a Java numerical and statistical library | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||