gurobi
Class GRBLinExpr
java.lang.Object
gurobi.GRBExpr
gurobi.GRBLinExpr
public class GRBLinExpr
- extends GRBExpr
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GRBLinExpr
public GRBLinExpr()
GRBLinExpr
public GRBLinExpr(GRBLinExpr le)
throws GRBException
- Throws:
GRBException
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object
size
public int size()
getVar
public GRBVar getVar(int i)
throws GRBException
- Throws:
GRBException
getCoeff
public double getCoeff(int i)
throws GRBException
- Throws:
GRBException
getConstant
public double getConstant()
getValue
public double getValue()
throws GRBException
- Throws:
GRBException
addConstant
public void addConstant(double c)
addTerm
public void addTerm(double coeff,
GRBVar var)
addTerms
public void addTerms(double[] coeff,
GRBVar[] var)
throws GRBException
- Throws:
GRBException
addTerms
public void addTerms(double[] coeff,
GRBVar[] var,
int start,
int len)
throws GRBException
- Throws:
GRBException
add
public void add(GRBLinExpr le)
throws GRBException
- Throws:
GRBException
multAdd
public void multAdd(double m,
GRBLinExpr le)
throws GRBException
- Throws:
GRBException
remove
public void remove(int i)
remove
public boolean remove(GRBVar v)
clear
public void clear()