public class BoxConstraints
extends java.lang.Object
implements java.io.Serializable
lb ≤ x ≤ ub
| Modifier and Type | Class and Description |
|---|---|
static class |
BoxConstraints.Bound
a bound constraint for a variable
|
| Constructor and Description |
|---|
BoxConstraints(int dim,
BoxConstraints.Bound... bounds)
Construct a set of bound constraints.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<BoxConstraints.Bound> |
getBounds()
Get a deep copy of the bounds.
|
LinearGreaterThanConstraints |
getLowerBounds()
Split the equality constraints and get the greater-than-the-lower-bounds part.
|
LinearLessThanConstraints |
getUpperBounds()
Split the equality constraints and get the less-than-the-upper-bounds part.
|
LinearGreaterThanConstraints |
toGreaterThanConstraints() |
LinearLessThanConstraints |
toLessThanConstraints() |
public BoxConstraints(int dim,
BoxConstraints.Bound... bounds)
bounds - the boundsdim - the number of variablespublic java.util.ArrayList<BoxConstraints.Bound> getBounds()
public LinearLessThanConstraints getUpperBounds()
public LinearGreaterThanConstraints getLowerBounds()
public LinearLessThanConstraints toLessThanConstraints()
public LinearGreaterThanConstraints toGreaterThanConstraints()