The line in question is 44 (prob[idx] = g0 * (ϕ' * ϕ)) in the file src/opensys/trajectory_jump.jl. I suggest wrapping the RHS (as in line 30) in real or a simple real_if_close function (i.e. one which will return the real part if it is close enough to a real to some tolerance). I made the change locally and it seems to have fixed things for me. I can make a PR, but it's quite an easy fix really :)
I find occasionally when using the AME trajectories solver of HOQST that
ame_jump
fails with an error, such asThe line in question is 44 (
prob[idx] = g0 * (ϕ' * ϕ)
) in the file src/opensys/trajectory_jump.jl. I suggest wrapping the RHS (as in line 30) inreal
or a simplereal_if_close
function (i.e. one which will return the real part if it is close enough to a real to some tolerance). I made the change locally and it seems to have fixed things for me. I can make a PR, but it's quite an easy fix really :)