Class NonNegativeConstraint
- java.lang.Object
-
- org.apache.commons.math3.optim.linear.NonNegativeConstraint
-
- All Implemented Interfaces:
OptimizationData
public class NonNegativeConstraint extends java.lang.Object implements OptimizationData
A constraint for a linear optimization problem indicating whether all variables must be restricted to non-negative values.- Since:
- 3.1
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
isRestricted
Whether the variables are all positive.
-
Constructor Summary
Constructors Constructor Description NonNegativeConstraint(boolean restricted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isRestrictedToNonNegative()
Indicates whether all the variables must be restricted to non-negative values.
-