Typing in Julia

If u0 is required to be a vector here (which seems to be the case based on your description), you can change this to

remake(prob,u0=collect(AllICs[i]))

to change the tuples to vectors on the fly. This will avoid having to collect all the elements in one go (leading to a lot of memory usage), but give similar results.

1 Like