Class QuadraticConstraint
java.lang.Object
dev.yushen.wrapperapi.gurobi.constraint.QuadraticConstraint
- All Implemented Interfaces:
Constraint
public class QuadraticConstraint extends java.lang.Object implements Constraint
-
Constructor Summary
Constructors Constructor Description QuadraticConstraint(LinearExpression lhs, char operator, QuadraticExpression rhs, java.lang.String name)QuadraticConstraint(QuadraticExpression lhs, char operator, LinearExpression rhs, java.lang.String name)QuadraticConstraint(QuadraticExpression lhs, char operator, QuadraticExpression rhs, java.lang.String name) -
Method Summary
Modifier and Type Method Description gurobi.GRBQConstrgetConstr()QuadraticExpressiongetLhs()java.lang.StringgetName()chargetOperator()QuadraticExpressiongetRhs()voidsetConstr(gurobi.GRBQConstr constr)voidsetLhs(QuadraticExpression lhs)voidsetName(java.lang.String name)voidsetOperator(char operator)voidsetRhs(QuadraticExpression rhs)java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
QuadraticConstraint
public QuadraticConstraint(QuadraticExpression lhs, char operator, QuadraticExpression rhs, java.lang.String name) -
QuadraticConstraint
public QuadraticConstraint(QuadraticExpression lhs, char operator, LinearExpression rhs, java.lang.String name) -
QuadraticConstraint
public QuadraticConstraint(LinearExpression lhs, char operator, QuadraticExpression 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.GRBQConstr getConstr() -
setConstr
public void setConstr(gurobi.GRBQConstr constr) -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-