public class BoxConstraints extends Object
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.
|
BoxConstraints(Vector lower,
Vector upper)
Construct a set of bound constraints.
|
Modifier and Type | Method and Description |
---|---|
List<BoxConstraints.Bound> |
bounds()
Get a deep copy of the bounds.
|
static boolean |
isInBox(Vector x,
Vector lower,
Vector upper)
Check if a solution is within a box.
|
LinearGreaterThanConstraints |
lowerBoundConstraints()
Split the box constraints and get the greater-than-the-lower-bounds part.
|
Vector |
lowerBounds()
Gets the lower bounds.
|
LinearGreaterThanConstraints |
toGreaterThanConstraints() |
LinearLessThanConstraints |
toLessThanConstraints() |
LinearLessThanConstraints |
upperBoundConstraints()
Split the box constraints and get the less-than-the-upper-bounds part.
|
Vector |
upperBounds()
Gets the upper bounds.
|
public BoxConstraints(int dim, BoxConstraints.Bound... bounds)
bounds
- the boundsdim
- the number of variablespublic List<BoxConstraints.Bound> bounds()
public Vector lowerBounds()
public Vector upperBounds()
public LinearLessThanConstraints upperBoundConstraints()
public LinearGreaterThanConstraints lowerBoundConstraints()
public LinearLessThanConstraints toLessThanConstraints()
public LinearGreaterThanConstraints toGreaterThanConstraints()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.