PSORLab / EAGO.jl

A development environment for robust and global optimization
MIT License
140 stars 16 forks source link

incompatibility with latest JuMP? #111

Closed toastedcrumpets closed 1 year ago

toastedcrumpets commented 1 year ago

Hi, Thanks for sharing this package, it looks really interesting for my ChemE applications!

I've tried a clean install, I used a Pkg.activate("testEnv"); Pkg.add("EAGO") to setup EAGO, then ran the example in the Readme.md. I get the following error

UndefVarError: _Derivatives not defined Stacktrace: [1] include @ ./Base.jl:419 [inlined] [2]

I'm running this in Jupyter on VSCode, on WSL2 and Julia 1.8. It looks to me like JuMP is missing the _Derivatives. Is this a version error with JuMP and should I pin an earlier version? Thanks, Marcus

RXGottlieb commented 1 year ago

Hi Marcus,

Thanks for trying it out! Seems there was a lingering julia version requirement that caused an old version of EAGO to be installed by default (v0.6.1), which was probably causing the error you're seeing.

I've pushed out a new version (v0.7.2) that should be the new default when you call Pkg.add("EAGO"), which should get the Readme example working. Let me know if you're still getting any errors!

Best, Robert

toastedcrumpets commented 1 year ago

Works great thanks again!