I am trying to use the new optimization algorithm in Optimization.jl called Sophia, which is the first algorithm that shows up in the link below.
However, I seem to get an error message that Sophia is an undefined variable. Shouldnβt it be enough to just call the algorithm as I have done below?
Seems like I am on an old version. Despite updating OptimizationOptimisers as I have shown below, the version does not change. Do you have any advice for how to get the correct version installed?
julia> Pkg.status("OptimizationOptimisers")
β [42dfb2eb] OptimizationOptimisers v0.1.2
Info Packages marked with β have new versions available and may be upgradable.
julia> Pkg.update("OptimizationOptimisers")
Updating registry at `C:\Users\.julia\registries\General.toml`
No Changes to `C:\Users\.julia\environments\v1.10\Project.toml`
No Changes to `C:\Users\.julia\environments\v1.10\Manifest.toml`
Precompiling project...
? DomainSets
? DiffEqSensitivity
? SciMLSensitivity
? Symbolics
? ModelingToolkit
? DataInterpolations β DataInterpolationsSymbolicsExt
? DataDrivenDiffEq
? DiffEqFlux
? DataDrivenSparse
julia> Pkg.status("OptimizationOptimisers")
β [42dfb2eb] OptimizationOptimisers v0.1.2
Info Packages marked with β have new versions available and may be upgradable.
If there are new versions available after Pkg.update, they should be indicated with a β .
To find out which dependencies prevent others from updating, try status --outdated. That produces a report like the following:
Alright thanks! I tried what you suggested and tried to for instance update Flux as I have shown below however, even here it does not update despite its dependency OptimizationFlux is not in need of an update, therefore Flux should be able to update, right?
Optimization, OptimizationOptimisers can be updated (try that)
Optimisers cannot be updated b/c of Flux
Flux cannot be updated b/c of OptimizationFlux
So one option is to update OptimizationFlux and keep your fingers crossed.
But then: why donβt you update all the packages?
You want to use the latest optimizers, but not the latest versions of other packages? Any specific reasons to pin dependencies at outdated versions?
I have tried to update OptimizationOptimisers and Optimization however as the snippet below shows, the version of OptimizationOptimisers remains unchanged. As I mentioned earlier, this is where I am currently stuck. Theoretically this should work since there are not restrictions to updating OptimizationOptimisers, right ?
(@v1.9) pkg> update OptimizationOptimisers
Updating registry at `C:\Users\.julia\registries\General.toml`
No Changes to `C:\Users\.julia\environments\v1.9\Project.toml`
No Changes to `C:\Users\.julia\environments\v1.9\Manifest.toml`
(@v1.9) pkg> status OptimizationOptimisers
Status `C:\Users\.julia\environments\v1.9\Project.toml`
β [42dfb2eb] OptimizationOptimisers v0.1.2
Info Packages marked with β have new versions available and may be upgradable.
If possible I would like to update all packages but thought of starting with these for now.