Intent/Ease framework for optimization