Common components for model based planning and optimization applications