Documentation


LinExpr.addConstant()

addConstant ( c )

Add a constant into a linear expression.

Arguments:

c: Constant to add to expression.

Example usage:

  expr = x + 2 * y
  expr.addConstant(0.1)