martinbiel / StochasticPrograms.jl

Julia package for formulating and analyzing stochastic recourse models.
MIT License
75 stars 25 forks source link

Installing StochasticPrograms.jl downgrades CPLEX.jl #49

Open lagrangian94 opened 1 year ago

lagrangian94 commented 1 year ago

Hi. I am new to StochasticPrograms.jl

I installed this package and got following message:

Pasted Graphic

(@v1.9) pkg> st CPLEX Status ~/.julia/environments/v1.9/Project.toml [a076750e] CPLEX v1.0.0

(@v1.9) pkg> add StochasticPrograms Resolving package versions... Installed FillArrays ─ v1.6.0 Updating ~/.julia/environments/v1.9/Project.toml ⌃ [a076750e] ↓ CPLEX v1.0.0 ⇒ v0.9.3 [8b8459f2] + StochasticPrograms v0.6.4 Updating ~/.julia/environments/v1.9/Manifest.toml ⌅ [4fba245c] ↓ ArrayInterface v7.4.11 ⇒ v6.0.25 [015c0d05] + ArrayInterfaceOffsetArrays v0.1.7 [b0d46f97] + ArrayInterfaceStaticArrays v0.1.5 [dd5226c6] + ArrayInterfaceStaticArraysCore v0.1.4 ⌃ [a076750e] ↓ CPLEX v1.0.0 ⇒ v0.9.3

So current CPLEX.jl v1.0.0 downgraded to CPLEX.jl v0.9.3

The problem is that, CPLEX.jl v0.9.3 does not support a recent CPLEX software v22.1.1, which I am currently using.

(CPLEX.jl v0.9.3 only supports CPLEX 12.10, 20.1, 22.1)

Could you please address this issue?

odow commented 1 year ago

StochasticPrograms.jl requires an exact dependency of MathOptInterface:

https://github.com/martinbiel/StochasticPrograms.jl/blob/ba8f82c6bd382339160d2e8d21150aaa53d1c17d/Project.toml#L30

This prevents it from installing the latest versions of CPLEX.jl (or Gurobi.jl https://github.com/martinbiel/StochasticPrograms.jl/issues/46).

I don't think @martinbiel is very active anymore, so I wouldn't expect a quick fix.