R
- The type of the problem boundspublic interface VectorProblem<R>
Interface for vector problems, i.e. problems which have some number of dimensions and each one is bounded.
Modifier and Type | Method and Description |
---|---|
int |
dimension()
Returns the problem’s dimension.
|
R |
lowerBound(int atDimension)
Returns the problem’s lower bound in a given dimension, indexed from 0.
|
R |
upperBound(int atDimension)
Returns the problem’s upper bound in a given dimension, indexed from 0.
|
int dimension()
Returns the problem’s dimension.
R lowerBound(int atDimension)
Returns the problem’s lower bound in a given dimension, indexed from 0. It must be not greater than the upperBound(int)
in the same dimension.
atDimension
- the given dimensionjava.lang.IllegalArgumentException
- if the given dimension is greater than this problem’s one or negativeR upperBound(int atDimension)
Returns the problem’s upper bound in a given dimension, indexed from 0. It must be not smaller than the lowerBound(int)
in the same dimension.
atDimension
- the given dimensionjava.lang.IllegalArgumentException
- if the given dimension is greater than this problem’s one or negative