I need to find the fixed point of a multivariable function in Julia.
Consider the following minimal example:
function example(p::Array{Float64,1})
q = -p
return q
end
Ideally I'd use a package like Roots.jl and call find_zeros(p -> p - example(p)), but I can't find the analogous package for multivariable functions. I found one called IntervalRootFinding, but it oddly requires unicode characters and is sparsely documented, so I can't figure out how to use it.
There are many options. The choice of the best one depends on the nature of
examplefunction (you have to understand the nature of yourexamplefunction and check against a documentation of a specific package if it would support it).Eg. you can use
fixedpointfrom NLsolve.jl:If your function would require a global optimization tools to find a fixed point then you can e.g. use BlackBoxOptim.jl with
norm(f(x) .-x)as an objective: