"UndefVarError: with_optimizer not defined" using GLPK

I have JuMP v.0.18.6 . I think the message “UndefVarError: with_optimizer not defined” is showed because I need JuMP v.0.19, but when I wrote Pkg.update(“JuMP”) JuMP wasn´t update.

Try

] add JuMP@0.21

You probably have an old package holding you pack.

(@v1.4) pkg> add JuMP@0.21.3
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
JuMP [4076af6c] log:
├─possible versions are: [0.18.3-0.18.6, 0.19.0-0.19.2, 0.20.0-0.20.1, 0.21.0-0.21.3] or uninstalled
├─restricted to versions 0.21.3 by an explicit requirement, leaving only versions 0.21.3
└─restricted by compatibility requirements with JuMPeR [707a9f91] to versions: 0.18.5-0.18.6 — no versions left
└─JuMPeR [707a9f91] log:
├─possible versions are: 0.6.0 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.6.0

(@v1.4) pkg> add JuMP@0.21
Updating registry at C:\Users\Ernesto\.julia\registries\General
Updating git-repo https://github.com/JuliaRegistries/General.git
Resolving package versions…
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
JuMP [4076af6c] log:
├─possible versions are: [0.18.3-0.18.6, 0.19.0-0.19.2, 0.20.0-0.20.1, 0.21.0-0.21.3] or uninstalled
├─restricted to versions 0.21 by an explicit requirement, leaving only versions 0.21.0-0.21.3
└─restricted by compatibility requirements with JuMPeR [707a9f91] to versions: 0.18.5-0.18.6 — no versions left
└─JuMPeR [707a9f91] log:
├─possible versions are: 0.6.0 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.6.0

Thanks, but the problem wasn´t resolved

You cannot use JuMPeR with the new version of JuMP.

To upgrade to the latest JuMP, you will need to remove it via ] rm JuMPeR.

1 Like

Thank you, very much. Problem solved