Documentation

QuadExpr.addConstant()


QuadExpr.addConstant()

addConstant ( c )

Add a constant into a quadratic expression.

Arguments:

c: Constant to add to expression.

Example usage:

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