Algorithms for Finding Compatible Constraints in Receding-Horizon Control of Dynamical Systems