Constrained systems and projection algorithm