Class BoxConstraints.Bound
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.constraint.linear.BoxConstraints.Bound
-
- All Implemented Interfaces:
Comparable<BoxConstraints.Bound>
- Enclosing class:
- BoxConstraints
public static class BoxConstraints.Bound extends Object implements Comparable<BoxConstraints.Bound>
A bound constraint for a variable.
-
-
Field Summary
Fields Modifier and Type Field Description int
index
the index to the variable, counting from 1.
-
Constructor Summary
Constructors Constructor Description Bound(int index, double lower, double upper)
Construct a bound constraint for a variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BoxConstraints.Bound that)
double
lower()
String
toString()
double
upper()
-
-
-
Method Detail
-
lower
public double lower()
-
upper
public double upper()
-
compareTo
public int compareTo(BoxConstraints.Bound that)
- Specified by:
compareTo
in interfaceComparable<BoxConstraints.Bound>
-
-