Class LinearConstraint
java.lang.Object
dev.yushen.wrapperapi.gurobi.constraint.LinearConstraint
- All Implemented Interfaces:
Constraint
public class LinearConstraint extends java.lang.Object implements Constraint
-
Constructor Summary
Constructors Constructor Description LinearConstraint(LinearExpression lhs, char operator, LinearExpression rhs, java.lang.String name) -
Method Summary
Modifier and Type Method Description gurobi.GRBConstrgetConstr()LinearExpressiongetLhs()java.lang.StringgetName()chargetOperator()LinearExpressiongetRhs()voidsetConstr(gurobi.GRBConstr constr)voidsetLhs(LinearExpression lhs)voidsetName(java.lang.String name)voidsetOperator(char operator)voidsetRhs(LinearExpression rhs)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
LinearConstraint
public LinearConstraint(LinearExpression lhs, char operator, LinearExpression rhs, java.lang.String name)
-
-
Method Details
-
getLhs
- Specified by:
getLhsin interfaceConstraint
-
setLhs
-
getRhs
- Specified by:
getRhsin interfaceConstraint
-
setRhs
-
getOperator
public char getOperator()- Specified by:
getOperatorin interfaceConstraint
-
setOperator
public void setOperator(char operator) -
getName
public java.lang.String getName()- Specified by:
getNamein interfaceConstraint
-
setName
public void setName(java.lang.String name) -
getConstr
public gurobi.GRBConstr getConstr() -
setConstr
public void setConstr(gurobi.GRBConstr constr) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-