Constrained Planning