|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Relationship>
org.apache.commons.math3.optim.linear.Relationship
public enum Relationship
Types of relationships between two cells in a Solver LinearConstraint
.
Enum Constant Summary | |
---|---|
EQ
Equality relationship. |
|
GEQ
Greater than or equal relationship. |
|
LEQ
Lesser than or equal relationship. |
Field Summary | |
---|---|
private java.lang.String |
stringValue
Display string for the relationship. |
Method Summary | |
---|---|
Relationship |
oppositeRelationship()
Gets the relationship obtained when multiplying all coefficients by -1. |
java.lang.String |
toString()
|
static Relationship |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Relationship[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Relationship EQ
public static final Relationship LEQ
public static final Relationship GEQ
Field Detail |
---|
private final java.lang.String stringValue
Method Detail |
---|
public static Relationship[] values()
for (Relationship c : Relationship.values()) System.out.println(c);
public static Relationship valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String toString()
toString
in class java.lang.Enum<Relationship>
public Relationship oppositeRelationship()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |