public class Constraint
extends javax.constraints.impl.AbstractConstraint
| Constructor and Description |
|---|
Constraint(javax.constraints.Problem problem) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getCoefficients() |
javax.constraints.ConstrainedVariable |
getDerivedVar() |
String |
getOper() |
double |
getValue() |
javax.constraints.ConstrainedVariable[] |
getVars() |
void |
negateCoefficients() |
void |
setCoefficients(double[] coefficients) |
void |
setCoefficients(int[] coefficients) |
void |
setDerivedVar(javax.constraints.ConstrainedVariable derivedVar) |
void |
setOper(String oper) |
void |
setValue(double value) |
void |
setVars(javax.constraints.ConstrainedVariable[] vars) |
void |
setVars(javax.constraints.Var[] vars) |
void |
setVars(javax.constraints.VarReal[] vars) |
and, asBool, implies, negation, or, post, post, postgetId, getImpl, getName, getObject, getProblem, setId, setImpl, setName, setObjectpublic double[] getCoefficients()
public void setCoefficients(int[] coefficients)
public void setCoefficients(double[] coefficients)
public void negateCoefficients()
public javax.constraints.ConstrainedVariable[] getVars()
public void setVars(javax.constraints.ConstrainedVariable[] vars)
public void setVars(javax.constraints.Var[] vars)
public void setVars(javax.constraints.VarReal[] vars)
public String getOper()
public void setOper(String oper)
public double getValue()
public void setValue(double value)
public javax.constraints.ConstrainedVariable getDerivedVar()
public void setDerivedVar(javax.constraints.ConstrainedVariable derivedVar)
Copyright © 2024. All rights reserved.