Control And Optimization With Dimensionality Constraints