public class GRBLinExpr extends GRBExpr
Constructor and Description |
---|
GRBLinExpr() |
GRBLinExpr(GRBLinExpr le) |
Modifier and Type | Method and Description |
---|---|
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() |
public GRBLinExpr()
public GRBLinExpr(GRBLinExpr le) throws GRBException
GRBException
public int size()
public GRBVar getVar(int i) throws GRBException
GRBException
public double getCoeff(int i) throws GRBException
GRBException
public double getConstant()
public double getValue() throws GRBException
GRBException
public void addConstant(double c)
public void addTerm(double coeff, GRBVar var)
public void addTerms(double[] coeff, GRBVar[] var) throws GRBException
GRBException
public void addTerms(double[] coeff, GRBVar[] var, int start, int len) throws GRBException
GRBException
public void add(GRBLinExpr le) throws GRBException
GRBException
public void multAdd(double m, GRBLinExpr le) throws GRBException
GRBException
public void remove(int i)
public boolean remove(GRBVar v)
public void clear()
Copyright © 2024. All rights reserved.