dear all,
I am working on Julia 0.6.4. I installed Optim.jl and its binary in my directory of current project. but when I call “optimize” function of this package, I got the error:
ERROR: UndefVarError: optimize not defined
My environment in which I use Julia knows Optim.jl but only “eval” one is defined, no other functions of this package.
Hi @Ajaychat3, thanks for your reply. Actually, no! well, I tried though.
However, the function is defined as “optimize” inside the package. I am wondering why I use tab to see other modules of this package nothing is appeared, while I use for the other installed packages and I could see a list of all modules inside that specific package!!!
see an MWE of what fails (apparently you are using some kind of IDE, but you don’t say what).
In any case, I would strongly recommend updating to Julia 1.2 and taking it from there. The version of Optim.jl that supports 0.6 is most likely to be very old.
Hi @Tamas_Papp,
Thank you very much:)
The version of Optim.jl is 0.18.1+
I am using Atom as an IDE.
well, I would like to upgrade the current version, however It cannot be taken by my decision, as I am supposed to work with this version!!
did you do using Optim before trying to use optimize()? This may seem like a silly answer, but without a minimum working example, we can’t rule it out.
there is no MWE! Well, I mean, simply I installed the package by:
Pkg.add(“Optim”)
then “using Optim”
but after that no access to any functions inside.
when I type “Optim.” and press tab to get the list of all functions, it gives me only:
“Optim.eval” as an output!
It seems that Optim was probably not installed properly. I don’t recall how to check the status of packages with Julia 0.6. With recent versions, it’s ] st. Perhaps Pkg.status() will do it.
Note that in this case your community support options are somewhat limited. Even if you get Optim.jl working (which should, of course, be feasible), most packages will be at versions that are not supported any more.