anriseth / MultiJuMP.jl

MultiJuMP enables the user to easily run multiobjective optimisation problems and generate Pareto fronts.
Other
61 stars 11 forks source link

varDict -> objDict #12

Closed anriseth closed 7 years ago

anriseth commented 7 years ago

Fix changes made by https://github.com/JuliaOpt/JuMP.jl/pull/1028

anriseth commented 7 years ago

objDict contains constraints as well. Need to do something else to extract the values of each variable...

mlubin commented 7 years ago

This is not a correct way to loop through all variables in the model. Use

[Variable(m,i) for i in 1:MathProgBase.numvar(m)]

instead.

anriseth commented 7 years ago

Thank you @mlubin !

anriseth commented 7 years ago

@bablookumarroy this should fix your problem with tanaka.jl. Note that I removed Julia 0.5 support, so you may wish to upgrade to Julia 0.6.

bablookumarroy commented 7 years ago

@anriseth Now its working fine.