An interacting particle consensus method for constrained global optimization