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
I looked into this a little bit. The problem is not the difference between InterpretedSystem(System(eqs)) and System(eqs) (these should hit ultimately the same core code) but there is a randomness in the solving of the system that can yield to different results (which is ultimately a failure of the used heuristics).
Solving the system 100 times and testing for the 84 solutions show that we only end up with all 84 solutions in 56 of the instances
julia> results = [count(a->!(a[1]≈a[2]),solutions(hc_bicrit(7,9))) for i in1:100];
julia>count(n -> n ==84, results)
56
A possible workaround (until we improve the underlying heuristics) is to solve the system multiple times, merge all solutions and then pick all unique solutions
functionhc_bicrit_sols(m,n)
s1 =solutions(hc_bicrit(m,n))
s2 =solutions(hc_bicrit(m,n))
s3 =solutions(hc_bicrit(m,n))
# merge solutions and filter for unique onesunique_points([s1;s2;s3])
end
With this I get
julia> results = [count(a->!(a[1]≈a[2]),(hc_bicrit_sols(7,9))) for i in 1:100]
julia> count(n -> n == 84, results)
100
I have a system with 84 solutions, but
HomotopyContinuation
returns only 83 when I useInterpretedSystem
:while replacing
InterpretedSystem(System(eqs))
withSystem(eqs)
gives the correct count 84.I'm using the latest release, 2.6.4, in Julia master (Version 1.9.0-DEV.97, Commit 822aea53c3*).
The text was updated successfully, but these errors were encountered: