The command "Pkg.add("ConditionalJuMP)" works.
However when, I am trying the command (using ConditionalJuMP), I am getting this error. Anyone can propose me something?
The command "Pkg.add("ConditionalJuMP)" works.
However when, I am trying the command (using ConditionalJuMP), I am getting this error. Anyone can propose me something?
On
ConditionalJuMP doesn't support the latest version of JuMP. You will need to install an old version via: ] add [email protected].
I would encourage you to instead use the latest version of JuMP, and its native support for indicator constraints: https://jump.dev/JuMP.jl/stable/constraints/#Indicator-constraints-1
Have you taken a look at
ConditionalJuMP's GitHub repo? The latest release (0.1.0) has been for Julia 1.0, and thus seems pretty outdated by now with not much work going on...Diff
masterw.r.t. 0.1.0 release: hereTelling from your screenshot, Julia tried to precompile
ConditionalJuMPinto./julia/compiled/v1.5. So I guess you are using Julia 1.5, right?First thing I'd do is trying to go back to Julia 1.0 and see whether
ConditionalJuMPwould be working with it (or if that woudlnd't suffice on its own by actively chossing earlierJuMPversions as explicit packages within your project), since overall it seems likeGenericRangeConstraintis missing/not found - which was part of earlierJuMPversions, but probably isn't anymore (not aJuMPexpert here, though).