anriseth / MultiJuMP.jl

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

MultiJuMP is not compatible with the latest version of JuMP #43

Closed MayarMadboly closed 3 years ago

MayarMadboly commented 3 years ago

julia> using JuMP, MultiJuMP [ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572] [ Info: Precompiling MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] WARNING: could not import JuMP.JuMPTypes into MultiJuMP ERROR: LoadError: LoadError: UndefVarError: JuMPTypes not defined Stacktrace: [1] top-level scope at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/types.jl:13 [2] include(::Function, ::Module, ::String) at ./Base.jl:380 [3] include at ./Base.jl:368 [inlined] [4] include(::String) at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:3 [5] top-level scope at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15 [6] include(::Function, ::Module, ::String) at ./Base.jl:380 [7] include(::Module, ::String) at ./Base.jl:368 [8] top-level scope at none:2 [9] eval at ./boot.jl:331 [inlined] [10] eval(::Expr) at ./client.jl:467 [11] top-level scope at ./none:3 in expression starting at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/types.jl:13 in expression starting at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15 ERROR: Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to /Users/oscar/.julia/compiled/v1.5/MultiJuMP/KOgs7_EU21N.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290 [3] _require(::Base.PkgId) at ./loading.jl:1030 [4] require(::Base.PkgId) at ./loading.jl:928 [5] require(::Module, ::Symbol) at ./loading.jl:923

MayarMadboly commented 3 years ago

julia> using JuMP, MultiJuMP [ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572] [ Info: Precompiling MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] WARNING: could not import JuMP.JuMPTypes into MultiJuMP ERROR: LoadError: LoadError: UndefVarError: JuMPTypes not defined Stacktrace: [1] top-level scope at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/types.jl:13 [2] include(::Function, ::Module, ::String) at ./Base.jl:380 [3] include at ./Base.jl:368 [inlined] [4] include(::String) at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:3 [5] top-level scope at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15 [6] include(::Function, ::Module, ::String) at ./Base.jl:380 [7] include(::Module, ::String) at ./Base.jl:368 [8] top-level scope at none:2 [9] eval at ./boot.jl:331 [inlined] [10] eval(::Expr) at ./client.jl:467 [11] top-level scope at ./none:3 in expression starting at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/types.jl:13 in expression starting at /Users/oscar/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15 ERROR: Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to /Users/oscar/.julia/compiled/v1.5/MultiJuMP/KOgs7_EU21N.ji. Stacktrace: [1] error(::String) at ./error.jl:33 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290 [3] _require(::Base.PkgId) at ./loading.jl:1030 [4] require(::Base.PkgId) at ./loading.jl:928 [5] require(::Module, ::Symbol) at ./loading.jl:923

anriseth commented 3 years ago

Hi, I'm not sure how actively maintained this package is at the moment. You may have to submit a PR with compatibility fixes yourself, if you are able to?

amgad-naiem commented 3 years ago

@anriseth PR is already merged, but it is not release. Can you just need to make a release from latest in master. Meanwhile @MayarMadboly You can use master branch

anriseth commented 3 years ago

Hi @amgad-naiem, thank you for highlighting. It seems @matbesancon has stopped maintaining the package so I've added you as a collaborator. Can you please make the release? I've been out of the Juila world for over two years and don't remember how to make new releases anymore.

amgad-naiem commented 3 years ago

Great. I have made a release now. It now works on latest version of JuMP