On the Discretize then Optimize Approach