jomi2801
jomi2801
I have run the code ``` using NLopt include(joinpath(Pkg.dir("MathProgBase"),"test","nlp.jl")) convexnlptest(NLoptSolver(algorithm=:LD_SLSQP)) ``` resulting in the output ``` ERROR: BoundsError Stacktrace: [1] optimize!(::NLopt.Opt, ::Array{Float64,1}) at /home/jomi/.julia/v0.6/NLopt/src/NLopt.jl:523 [2] optimize!(::NLopt.NLoptMathProgModel) at /home/jomi/.julia/v0.6/NLopt/src/NLoptSolverInterface.jl:203 [3] convexnlptest(::NLopt.NLoptSolver)...
The computation of the Hessian of the squared euclidean norm results in an interesting output: ``` using ForwardDiff; f(x::Vector) = .5*norm(x, 2)^2; x = zeros(2); ForwardDiff.hessian(f, x) ``` which is...