Paolo Muratore-Ginanneschi
Paolo Muratore-Ginanneschi
Please bear with me, my programming skills are very limited. It seems, however, to me that both ArrayPartition and ComponentArrays have an issue with ExtendedJumpArray. Namely the example code below...
Many thanks for your comment! If I replace affect! as ``` function affect1!(integrator) # vv = copyto!(integrator.p.temp_psi, integrator.u.u.x[1]) # copy this to avoid aliasing later # mart = integrator.u.u.x[2] #...
Sorry I did not further update. Indeed after further debugging I realised that my code correctly works with ``` using ComponentArrays u0= ComponentArray(v=psi0, m=1.0) ``` and with u.u as you...
Excellent. Many thanks for your help!
Would it be possible to add the functional syntax also to the time minimisation problem? Many thanks
Many thanks! The main reason is that I feel that being able to use both syntaxes gives a better understanding of how the package is working. Clearly there is something...
Excellent, Thanks! The @macroexpand tip is indeed very useful! Now I understand. What I was missing was `dynamics!(ocp, (x, u, tf) -> [ x[2], u])` my wrong guess was instead:...
By the way how to quote the package in a paper?
many thanks. To be used hopefully soon :) KR paolo > On 28. Aug 2024, at 17.20, Olivier Cots ***@***.***> wrote: > > > Hi @paolo-mgi @jbcaillau ! > >...
Still not working with Runtime –> Julia 1.10.4.