public class ZERO extends PenaltyFunction
Function.EvaluationException| Constructor and Description |
|---|
ZERO(int dimension)
Construct a no-cost penalty function.
|
| Modifier and Type | Method and Description |
|---|---|
int |
dimensionOfDomain()
Get the number of variables the function has.
|
java.lang.Double |
evaluate(Vector x)
Evaluate the function f at x, where x is from the domain.
|
dimensionOfRangepublic ZERO(int dimension)
dimension - the problem dimensionpublic java.lang.Double evaluate(Vector x)
Functionx - xpublic int dimensionOfDomain()
Function