- All Implemented Interfaces:
OptimizationData
A constraint for a linear optimization problem indicating whether all
variables must be restricted to non-negative values.
-
Constructor Summary 
Constructors
-
Method Summary 
boolean
Indicates whether all the variables must be restricted to non-negative
values.
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details 
-
NonNegativeConstraint 
public NonNegativeConstraint(boolean restricted)
Simple constructor.
- Parameters:
restricted
- If true
, all the variables must be positive.
-
Method Details 
-
isRestrictedToNonNegative 
public boolean isRestrictedToNonNegative()
Indicates whether all the variables must be restricted to non-negative
values.
- Returns:
true
if all the variables must be positive.