Least mean square optimimization with a constraint