You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like there's something fishy in nlopt_set_xtol_abs
using Optimization, Symbolics, OptimizationNLopt, SparseArrays
using OptimizationNLopt.NLopt
N =10
x0 =randn(N)
x = Symbolics.variables(:x, 1:N)
p = Symbolics.variable(:p)
cost =sum(abs2, x)
hess = Symbolics.hessian(cost, x)
hessfun =build_function(hess, x, p)[2]
hessfun =eval(hessfun)
costfun = (x,p)->sum(abs2, x)
grad = (g, x, p) -> g .=2x
optfun =OptimizationFunction{false}(costfun; hess = hessfun, grad);
prob =OptimizationProblem(optfun, x0);
sol =solve(prob, NLopt.LD_AUGLAG_EQ());
julia> sol = solve(prob, NLopt.LD_AUGLAG_EQ());
signal (11): Segmentation fault
in expression starting at REPL[15]:1
memcpy at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
nlopt_set_xtol_abs at /home/fredrikb/.julia/artifacts/332af19a7ea5911ea41bb72ba5e3badcf5dd4ba1/lib/libnlopt.so (unknown line)
nlopt_optimize at /home/fredrikb/.julia/artifacts/332af19a7ea5911ea41bb72ba5e3badcf5dd4ba1/lib/libnlopt.so (unknown line)
optimize! at /home/fredrikb/.julia/packages/NLopt/OIUOZ/src/NLopt.jl:617
optimize at /home/fredrikb/.julia/packages/NLopt/OIUOZ/src/NLopt.jl:624 [inlined]
The text was updated successfully, but these errors were encountered:
Looks like there's something fishy in
nlopt_set_xtol_abs
The text was updated successfully, but these errors were encountered: