Handling "="-constraints and unconstrained variables (with simple Mathematical tricks)