-
Notifications
You must be signed in to change notification settings - Fork 34
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
"MethodError: no method matching create_array(..." When computing periodic orbits from ModelingToolkit type function #61
Comments
I have not given MTK the love it deserves yet. I am changing the pacakge a lot for an interface similar to DE.jl and it is a lot of work. Dont you have the answer here by any chance? |
In passing, remember that 'jet_func = BK.getJet(F_func, J_func);' can compute the AD jacobian for you, dont need to pass it. |
The linked issue contained the solution, thanks! :) |
I can imagine so! I'd offer to help, but I feel I know neither MTK nor BK well enough... |
posting issue is a lot of help already! Feel free to continue even with seemingly trivial questions, it does not matter.
hopefully, with the new interface it will be easier. There will be a Here is a snapshot of the the future interace prob = BifurcationProblem(F_func, z0, par_tm, (@lens _[2]); recordFromSolution = (x, p) -> x[1])
br = continuation(prob, PALC(tangent = Bordered()), opts_br;
plot = false, normC = norminf) |
I'd make that smiley with stars/hearts for eyes, but don't think that is possible on GitHub. That looks really cool! |
Hello,
If I try the following code, I can successfully compute the periodic orbits of a brusselator model:
However, if I instead create my function using some ModelingToolkit function, I get an error. Replace the 2nd and 3rd box with:
and the last box gives an error:
It seems to be something specifically with the catalyst type model, and the last box. I can declare the functions using Catalyst, find the bifurcation diagram, then replace
F
,J
, andjet
with the_func
version, and successfully run the last box. Trying any combination like :or
both give the error. Trying something like
also does. The one thing that does work is:
There seems to be something weird that goes on with one function call, but I am unsure what is actually going on with the
jet
thing, so not sure how to circumvent it.The text was updated successfully, but these errors were encountered: