using JuMP, AmplNLWriter
m = Model(() → AmplNLWriter.Optimizer(“raposa”)) @variable(m, 1 <= x <= 10 ) @variable(m, 0 <= y <= 8 ) @NLobjective(m, Min, x^2 + y^2 + x ) @NLconstraint(m, x*y >= 1.0 )
optimize!(m)
@show value(x) @show value(y)
solution_summary(m)
The above code shows that
" Errors calling the solver. Failed with: Base.IOError(“could not spawn raposa /tmp/jl_NWfK3R/model.nl -AMPL: no such f:ile or directory (ENOENT)”, -2)"
I try to do " raposa /tmp/jl_NWfK3R/model.nl " in command of Linux, and it is OK. So what’s wrong with it and how to fix it?