public class ZeroPenalty extends PenaltyFunction
Function.EvaluationException| Constructor and Description |
|---|
ZeroPenalty(int dimension)
Construct a no-cost penalty function.
|
| 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 ZeroPenalty(int dimension)
dimension - the problem dimensionpublic Double evaluate(Vector x)
Functionx - xpublic int dimensionOfDomain()
FunctionCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.