gurobi
Class GRBLinExpr

java.lang.Object
  extended by gurobi.GRBExpr
      extended by gurobi.GRBLinExpr

public class GRBLinExpr
extends GRBExpr


Constructor Summary
GRBLinExpr()
           
GRBLinExpr(GRBLinExpr le)
           
 
Method Summary
 void add(GRBLinExpr le)
           
 void addConstant(double c)
           
 void addTerm(double coeff, GRBVar var)
           
 void addTerms(double[] coeff, GRBVar[] var)
           
 void addTerms(double[] coeff, GRBVar[] var, int start, int len)
           
 void clear()
           
protected  void finalize()
           
 double getCoeff(int i)
           
 double getConstant()
           
 double getValue()
           
 GRBVar getVar(int i)
           
 void multAdd(double m, GRBLinExpr le)
           
 boolean remove(GRBVar v)
           
 void remove(int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GRBLinExpr

public GRBLinExpr()

GRBLinExpr

public GRBLinExpr(GRBLinExpr le)
           throws GRBException
Throws:
GRBException
Method Detail

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()