public static class BoxConstraints.Bound extends Object implements Comparable<BoxConstraints.Bound>
Modifier and Type | Field and Description |
---|---|
int |
index
the index to the variable, counting from 1.
|
Constructor and Description |
---|
Bound(int index,
double lower,
double upper)
Construct a bound constraint for a variable.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BoxConstraints.Bound that) |
double |
lower() |
String |
toString() |
double |
upper() |
public Bound(int index, double lower, double upper)
index
- the index to the variable, counting from 1lower
- the lower bound for the variableupper
- the upper bound for the variablepublic double lower()
public double upper()
public int compareTo(BoxConstraints.Bound that)
compareTo
in interface Comparable<BoxConstraints.Bound>
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.