Class DoubleVariable
java.lang.Object
dev.yushen.wrapperapi.gurobi.variable.DoubleVariable
- All Implemented Interfaces:
Variable
public class DoubleVariable extends java.lang.Object implements Variable
-
Constructor Summary
Constructors Constructor Description DoubleVariable(java.lang.String name)DoubleVariable(java.lang.String name, double value)DoubleVariable(java.lang.String name, double lowerBound, double upperBound) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
DoubleVariable
public DoubleVariable(java.lang.String name) -
DoubleVariable
public DoubleVariable(java.lang.String name, double lowerBound, double upperBound) -
DoubleVariable
public DoubleVariable(java.lang.String name, double value)
-
-
Method Details
-
getLowerBound
public java.lang.Double getLowerBound()- Specified by:
getLowerBoundin interfaceVariable
-
setLowerBound
public void setLowerBound(double lowerBound) -
getUpperBound
public java.lang.Double getUpperBound()- Specified by:
getUpperBoundin interfaceVariable
-
setUpperBound
public void setUpperBound(double upperBound) -
getValue
public java.lang.Double getValue() throws gurobi.GRBException -
getName
public java.lang.String getName() -
setName
public void setName(java.lang.String name) -
getDoubleValue
public double getDoubleValue() throws gurobi.GRBException- Specified by:
getDoubleValuein interfaceVariable- Throws:
gurobi.GRBException
-
getGRBVar
public gurobi.GRBVar getGRBVar() -
setGRBVar
public void setGRBVar(gurobi.GRBVar grbVar) -
add
-
add
-
add
-
add
-
mul
-
mul
-
mul
-
mul
-
sub
-
sub
-
sub
-
sub
-
sub
-
div
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-