Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
GRBQuadExpr::addTerm()
Add a single new term into a quadratic expression.
void | addTerm ( | double | coeff, |
GRBVar | var ) |
-
Add a new linear term into a quadratic expression.
Arguments:
coeff: Coefficient for new linear term.
var: Variable for new linear term.
void | addTerm ( | double | coeff, |
GRBVar | var1, | ||
GRBVar | var2 ) |
-
Add a new quadratic term into a quadratic expression.
Arguments:
coeff: Coefficient for new quadratic term.
var1: Variable for new quadratic term.
var2: Variable for new quadratic term.