Partial for issue #46, needs tests
Merge branch 'master' of https://github.com/IainNZ/JuMP.jl