Optim.jl
Optim.jl copied to clipboard
Optimization functions for Julia
I have a function which is difficult to bound (predicting bounds is difficult and often not easily defined in the parameter space), and some out-of-bounds values will return Inf, missing,...
https://github.com/EnzymeAD/Enzyme.jl/issues/298 MWE: ```julia julia> using Optim, Enzyme, LinearAlgebra julia> function f(x) y1 = zeros(eltype(x), 3) y2 = ones(eltype(x), 3) y1 .+= (3 - sin(x[1]))^2 y2 .+= (x[2] - 3)^4 dot(y1,...
I noticed the build badges are currently pointing at old builds on both Travis CI (from a year ago) and Appveyor (original repository by @blegat 5 years ago). I corrected...
I am currently using particle swarm on one of my problems and wanted to change the weights, but:  `c1`,`c2` and `w` are not exposed, due adaptive PSO being implemented....
I understand from previous issues that AssertionErrors in the line search can sometimes be produced, and it seems like the line is that they are to be expected in certain...
https://github.com/JuliaNLSolvers/Optim.jl/pull/799 did [not](https://github.com/JuliaNLSolvers/Optim.jl/pull/799#issuecomment-607194283) fix it: ``` julia> using Optim, Test julia> for f in [x->sign(x), x->-sign(x)] @info f for x in [[-2,2],[-1,2],[-2,1]] @info x result = optimize(f, x...) @test Optim.converged(result)...
I have been trying to use Optimization.jl with Optim.jl to perform global optimization with `ParticleSwarm()`, with MethodOfLines.jl generating the data for the loss, and running the forward problem. I have...
With this MOI wrapper, one should be able to use Optim with JuMP doing: ```julia model = Model(Optim.Optimizer) ``` If there are nonlinear constraints created with `@NLconstraint`, it would select...
In my case I saw a x4 speedup for a function of 530 variables.
The documentation does not state that not all optimzers are valid inner optimizers for `Fminbox`: https://julianlsolvers.github.io/Optim.jl/stable/#user/minimization/#box-constrained-optimization ```julia using Optim f(x) = (1.0 - x[1])^2 + 100.0 * (x[2] - x[1]^2)^2...