A hybrid algorithm for infinitely constrained optimization