public class SumOfPenalties extends PenaltyFunction
Function.EvaluationException| Constructor and Description |
|---|
SumOfPenalties(PenaltyFunction... penalties)
Construct a sum-of-penalties penalty function from a set of penalty functions.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimensionOfDomain()
Get the number of variables the function has.
|
Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfRangepublic SumOfPenalties(PenaltyFunction... penalties)
penalties - the constituent penalty functionspublic Double evaluate(Vector x)
Functionx - xpublic int dimensionOfDomain()
FunctionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.