New Reply

Genetic Algorithms with Stiff ODEs in Matlab

 
Share Thread Thread Tools
Aug15-11, 12:35 PM   #1
 

Genetic Algorithms with Stiff ODEs in Matlab


I'm trying to optimize a system of 10-20 differential equations in Matlab using a genetic algorithm. The problem is, when I call the ode function, whether it be ode45, ode23, ode15, etc., it sometimes gets stuck in an infinite loop. The genetic algorithm no longer progresses and I have to Ctrl+C out of it.

My guess is that the ode solver is diverging, yet not throwing an error that it is stuck. It just gets stuck and doesn't timeout. I'm wondering if there is a way that I can test if the ode solver is converging, and if it isn't, force the GA solver to try a different point. The equations that I am trying to fit are all exponentials that range over 20 orders of magnitude or so, so there are many solution sets that won't converge.

This behavior isn't limited to only GA algorithms. I get the same behavior if I'm running a pattern search on the same set.

Any ideas?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
Aug15-11, 07:28 PM   #2
 
Recognitions:
Gold Membership Gold Member
I have a similar problem with a system of hundreds of dimensions.

Thing is, it works fine if I handle each element with a for loop, but when I vectorize thee operations, I get diverging solutions that go NaN.
New Reply

Tags
loop, matlab, ode, stiff
Thread Tools


Similar Threads for: Genetic Algorithms with Stiff ODEs in Matlab
Thread Forum Replies
Genetic Algorithms vs. Monte Carlo Programming & Comp Sci 3
help in solving a system of ODEs using MATLAB Calculus & Beyond Homework 0
Solving ODEs system at Matlab Math & Science Software 17
Matlab- solving odes for a matrix Math & Science Software 0
Solving coupled ODEs with Matlab Math & Science Software 0