public class LPConstraintImpl extends java.lang.Object implements LPConstraint
Modifier and Type | Field and Description |
---|---|
protected double[] |
coefficients |
protected LPEngine.Operator |
operator |
protected double |
rhs |
Constructor and Description |
---|
LPConstraintImpl(double[] coefficients) |
LPConstraintImpl(double[] coefficients,
LPEngine.Operator operator) |
LPConstraintImpl(double[] coefficients,
LPEngine.Operator operator,
double rhs) |
Modifier and Type | Method and Description |
---|---|
double[] |
getCoefficients() |
LPEngine.Operator |
getOperator() |
double |
getRhs() |
void |
setCoefficients(double[] coefficients) |
void |
setOperator(LPEngine.Operator operator) |
void |
setRhs(double rhs) |
protected double[] coefficients
protected LPEngine.Operator operator
protected double rhs
public LPConstraintImpl(double[] coefficients)
public LPConstraintImpl(double[] coefficients, LPEngine.Operator operator)
public LPConstraintImpl(double[] coefficients, LPEngine.Operator operator, double rhs)
public double[] getCoefficients()
getCoefficients
in interface LPConstraint
public LPEngine.Operator getOperator()
getOperator
in interface LPConstraint
public double getRhs()
getRhs
in interface LPConstraint
public void setCoefficients(double[] coefficients)
setCoefficients
in interface LPConstraint
public void setOperator(LPEngine.Operator operator)
setOperator
in interface LPConstraint
public void setRhs(double rhs)
setRhs
in interface LPConstraint