Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using PowerModels
- using Ipopt
- using JuMP # example didn't have this line
- run_ac_opf("case5.m", JuMP.with_optimizer(Ipopt.Optimizer))
- julia> include("test1.jl")
- ERROR: LoadError: UndefVarError: with_optimizer not defined
- Stacktrace:
- [1] include at .boot.jl:326 [inlined]
- [2] include_relative(::Module, ::String) at .loading.jl:1038
- [3] include(::Module, ::String) at .sysimg.jl:29
- [4] include(::String) at .client.jl:403
- [5] top-level scope at none:0
- (v1.1) pkg> add PowerModels
- Resolving package versions...
- ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
- JuMP [4076af6c] log:
- ├─possible versions are: 0.19.1 or uninstalled
- ├─JuMP [4076af6c] is fixed to version 0.19.1
- └─found to have no compatible versions left with PowerModels [c36e90e8]
- └─PowerModels [c36e90e8] log:
- ├─possible versions are: [0.1.0, 0.2.0-0.2.3, 0.3.0-0.3.4, 0.4.0, 0.5.0-0.5.1, 0.6.0-0.6.1, 0.7.0-0.7.2, 0.8.0-0.8.8, 0.9.0-0.9.6] or uninstalled
- └─restricted to versions * by an explicit requirement, leaving only versions [0.1.0, 0.2.0-0.2.3, 0.3.0-0.3.4, 0.4.0, 0.5.0-0.5.1, 0.6.0-0.6.1, 0.7.0-0.7.2, 0.8.0-0.8.8, 0.9.0-0.9.6]
- (v1.1) pkg> status
- Status `C:Usersme.juliaproJuliaPro_v1.1.0.1environmentsv1.1Project.toml`
- [c52e3926] Atom v0.8.5
- [7073ff75] IJulia v1.18.1
- [916415d5] Images v0.18.0
- [4076af6c] JuMP v0.19.1 [`C:Usersme.juliadevJuMP`]
- [e5e0dc1b] Juno v0.7.0
- [91a5bcdd] Plots v0.24.0
- [438e738f] PyCall v1.91.2
- [d330b81b] PyPlot v2.8.1+ [`C:Usersme.juliadevPyPlot`]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement