Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. using PowerModels
  2. using Ipopt
  3. using JuMP # example didn't have this line
  4.  
  5. run_ac_opf("case5.m", JuMP.with_optimizer(Ipopt.Optimizer))
  6.  
  7. julia> include("test1.jl")
  8. ERROR: LoadError: UndefVarError: with_optimizer not defined
  9. Stacktrace:
  10. [1] include at .boot.jl:326 [inlined]
  11. [2] include_relative(::Module, ::String) at .loading.jl:1038
  12. [3] include(::Module, ::String) at .sysimg.jl:29
  13. [4] include(::String) at .client.jl:403
  14. [5] top-level scope at none:0
  15.  
  16. (v1.1) pkg> add PowerModels
  17. Resolving package versions...
  18. ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
  19. JuMP [4076af6c] log:
  20. ├─possible versions are: 0.19.1 or uninstalled
  21. ├─JuMP [4076af6c] is fixed to version 0.19.1
  22. └─found to have no compatible versions left with PowerModels [c36e90e8]
  23. └─PowerModels [c36e90e8] log:
  24. ├─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
  25. └─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]
  26.  
  27. (v1.1) pkg> status
  28. Status `C:Usersme.juliaproJuliaPro_v1.1.0.1environmentsv1.1Project.toml`
  29. [c52e3926] Atom v0.8.5
  30. [7073ff75] IJulia v1.18.1
  31. [916415d5] Images v0.18.0
  32. [4076af6c] JuMP v0.19.1 [`C:Usersme.juliadevJuMP`]
  33. [e5e0dc1b] Juno v0.7.0
  34. [91a5bcdd] Plots v0.24.0
  35. [438e738f] PyCall v1.91.2
  36. [d330b81b] PyPlot v2.8.1+ [`C:Usersme.juliadevPyPlot`]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement