Optimal open pit design