I have a neural network with connectivity matrix defined in the second-order differential equation. I want to use particle swarm optimization to optimize the weight matrix for generating output similar to my target data. Should I use pyswarm for ODEs? Or some other method exist?