|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.combean.mathprog.lp.DoubleLPVariable
public class DoubleLPVariable
A linear variable with representation based on plain Java doubles.
Constructor Summary | |
---|---|
DoubleLPVariable(double coeff)
Constructor for an unbounded variable. |
|
DoubleLPVariable(double coeff,
double lowerBound,
double upperBound)
Constructor for a bounded variable |
|
DoubleLPVariable(String name,
double coeff)
Constructor for an unbounded variable. |
|
DoubleLPVariable(String name,
double coeff,
double lowerBound,
double upperBound)
Constructor for a bounded variable |
Method Summary | |
---|---|
double |
getCoeff()
Get coefficient of the variable. |
double |
getLowerBound()
Get lower bound of interval of admissible values for variable. |
String |
getName()
|
double |
getUpperBound()
Get upper bound of interval of admissible values for variable. |
void |
setName(String name)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DoubleLPVariable(double coeff)
coeff
- the coefficient in the objective function.public DoubleLPVariable(double coeff, double lowerBound, double upperBound)
coeff
- the coefficient in the objective function.lowerBound
- the lower bound of the variableupperBound
- the upper bound of the variablepublic DoubleLPVariable(String name, double coeff)
name
- the name of the variable.coeff
- the coefficient in the objective function.public DoubleLPVariable(String name, double coeff, double lowerBound, double upperBound)
name
- the name of the variable.coeff
- the coefficient in the objective function.lowerBound
- the lower bound of the variableupperBound
- the upper bound of the variableMethod Detail |
---|
public double getCoeff()
LPVariable
getCoeff
in interface LPVariable
public double getLowerBound()
LPVariable
getLowerBound
in interface LPVariable
public double getUpperBound()
LPVariable
getUpperBound
in interface LPVariable
public String getName()
getName
in interface NamedObject
public void setName(String name)
name
- The name to set.public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |