JuliaOpt/JuMP.jl — pull request #207 by joehuchette (2014-06-19 14:49:59+00:00)
Title: RFC: Clear internal model if problem modification won't catch it

This clears the internal model if the user adds something that won't get caught in the problem modification process:

* linear constraints
* quadratic constraints
* SOS constraints
* quadratic objective
* callbacks

We may want to eventually support these types of modification (assuming the solvers support them), but until then we should try to ensure correctness.

There's also a small fix in the model.jl test independent of these changes, so that should me merged into master regardless.