|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.lp.DoubleLPConstraint
public class DoubleLPConstraint
A linear constraint with representation based on plain Java doubles.
Field Summary |
---|
Fields inherited from interface net.sourceforge.combean.interfaces.mathprog.lp.LPConstraint |
---|
REL_COUNT, REL_EQUAL, REL_GREATER, REL_LESS, REL_UNDEFINED |
Constructor Summary | |
---|---|
DoubleLPConstraint(byte relation,
double rhs)
Constructor for an unnamed constraint |
|
DoubleLPConstraint(String name,
byte relation,
double rhs)
Constructor of a named constraint |
Method Summary | |
---|---|
String |
getName()
|
byte |
getRelation()
Return relation symbol |
double |
getRhs()
Get value of right-hand side. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleLPConstraint(byte relation, double rhs)
relation
- the relationrhs
- the right-hand sidepublic DoubleLPConstraint(String name, byte relation, double rhs)
name
- the name of the constraintrelation
- the relationrhs
- the right-hand sideMethod Detail |
---|
public byte getRelation()
LPConstraint
getRelation
in interface LPConstraint
public double getRhs()
LPConstraint
getRhs
in interface LPConstraint
public String getName()
getName
in interface NamedObject
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |