A new strategy for constrained focusing in unknown scenarios