QuadExpr.remove()


QuadExpr.remove()

remove( item )

Remove a term from a quadratic expression.

Arguments:

item: Ifitemis an integer, then the quadratic term stored at indexitemof the expression is removed. Ifitemis a Var, then all quadratic terms that involveitem一个re removed.

Example usage:

expr = x * x + 2 * y * y + z expr.remove(x)