|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math3.optim.linear.NonNegativeConstraint
public class NonNegativeConstraint
A constraint for a linear optimization problem indicating whether all variables must be restricted to non-negative values.
Field Summary | |
---|---|
private boolean |
isRestricted
Whether the variables are all positive. |
Constructor Summary | |
---|---|
NonNegativeConstraint(boolean restricted)
|
Method Summary | |
---|---|
boolean |
isRestrictedToNonNegative()
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 |
Field Detail |
---|
private final boolean isRestricted
Constructor Detail |
---|
public NonNegativeConstraint(boolean restricted)
restricted
- If true
, all the variables must be positive.Method Detail |
---|
public boolean isRestrictedToNonNegative()
true
if all the variables must be positive.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |