MATLAB: How to speed up fmincon

fminconspeed up

Hello, I'm trying to get optimized two parameters in the differential equations. I've already gotten very helpful answers when I asked here using a simple example. So now I know how to make my code, but my actual system is consisted of 64 differential equations. In other words, my goal is to find out two parameters that are in all differential equations, while solving 64 differential equations to make one objective function to minimum. But when I run the code, it was running for several hours. And it's still 'busy'. Does that mean my code has a problem? I'm attaching my code. Please help me. Thank you.

Best Answer

Your tolerances 'TolX',1e-100,'TolCon',1e-100 are extremely small. That can protract the optimization.