-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixedpoint returns wrong result #231
Comments
Can you show me the output? I get the correct answer. |
I'm seeing some test noise wrt fixedpoints so I'm looking into it. |
Your right, it works in version 4.2.0 julia> fixedpoint(x -> f(x, 0.), [1.2])
With version 4.0.0 instead, I get fixedpoint(x -> f(x, 0.), [1.2])
In any case, I was running on Julia 1.3.0. Will upgrade my dependencies which hopefully also solves the issue with my larger model. |
Fingers crossed :) |
I think this solved your bug 9b4c7b3 |
Hi,
consider the following function:
f(x, p) = p .* x
When I solve for a fixed point everything works fine when p != 0. But when p = 0, the call
fixedpoint(x -> f(x, 0.), [1.2])
just returns the initial condition, e.g. 1.2, and not the fixed point of zero. This also occurs when setting m = 0 which according to the documentation just gives Picard iteration. Don't understand how this could possibly fail. Any ideas?
The text was updated successfully, but these errors were encountered: