Shouldn't this be a warning instead of raising an exception?  Maybe the user has a reason to use this minimization method, even if the model is linear.