Closed KikivanElsen closed 1 month ago
Hi Kiki,
This is fortuitous timing.
PiecewiseLinearOpt was unmaintained for a number of years, and I only started reviving it two days ago. (Take a look at the commits: https://github.com/jump-dev/PiecewiseLinearOpt.jl/commits/master/).
I'll tag a new release, which should fix this: https://github.com/JuliaRegistries/General/pull/115093
Once it is merged, you can update your packages.
The new version is released.
Here was my previous environment, with JuMP@0.23
(eago2) pkg> st
Status `/private/tmp/eago2/Project.toml`
[a076750e] CPLEX v1.0.3
⌅ [4076af6c] JuMP v0.23.2
[0f51c51e] PiecewiseLinearOpt v0.4.1
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`
Updating now gives JuMP@1.23 and PiecewiseLinearOpt@0.4.2 :smile:
(eago2) pkg> up
Updating registry at `~/.julia/registries/General.toml`
Installed PiecewiseLinearOpt ─ v0.4.2
Updating `/private/tmp/eago2/Project.toml`
[4076af6c] ↑ JuMP v0.23.2 ⇒ v1.23.1
[0f51c51e] ↑ PiecewiseLinearOpt v0.4.1 ⇒ v0.4.2
Updating `/private/tmp/eago2/Manifest.toml`
[49dc2e85] - Calculus v0.5.1
[4076af6c] ↑ JuMP v0.23.2 ⇒ v1.23.1
[0f51c51e] ↑ PiecewiseLinearOpt v0.4.1 ⇒ v0.4.2
Precompiling project...
1 dependency successfully precompiled in 5 seconds. 39 already precompiled.
(eago2) pkg> st
Status `/private/tmp/eago2/Project.toml`
[a076750e] CPLEX v1.0.3
[4076af6c] JuMP v1.23.1
[0f51c51e] PiecewiseLinearOpt v0.4.2
I wrote the following script in Julia because I want to test the piecewise-linear function for different solvers. Solvers GLPK, Gurobi and HiGHS are working. However, when I try to add EAGO and CPLEX I keep getting errors...
The error that is shown is the following:
In the GitHub for EAGO someone gave me the following answer:
Ah, this is because of PiecewiseLinearOpt. Adding that package will downgrade JuMP and EAGO to versions that were designed in earlier versions of Julia and likely will not work in Julia v1.10.
If you need to use PiecewiseLinearOpt with a more recent version of JuMP, you should post an issue here: https://github.com/jump-dev/PiecewiseLinearOpt.jl/issues.
Can you help me to do this? Kind regards, Kiki