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 intindexthe 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 intcompareTo(BoxConstraints.Bound that)doublelower()StringtoString()doubleupper()
-
-
-
Method Detail
-
lower
public double lower()
-
upper
public double upper()
-
compareTo
public int compareTo(BoxConstraints.Bound that)
- Specified by:
compareToin interfaceComparable<BoxConstraints.Bound>
-
-