Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
second sensitivity equations for large scale ODEs with multiple parameters
조회 수: 2 (최근 30일)
이전 댓글 표시
In order to calculate geodesic path, I will calculate second sensitivity equations for 19 ODEs with 41 parameters. Owing to integrate for the second sensitivity equations, the equations should be keep and I use symbolic expression and matlabfunction to do it. But the matlab shows me the error information: out of memory for the second step( as shown next)
1. [SS,dSS,SS0] = sensitivity_equations_another([obj.x;obj.S(:)], obj.theta, [obj.dx;obj.dS(:)], [obj.x0;obj.S0(:)],M);
2 obj.ODE_2nd_order_sensitivity_rhs=matlabFunction([obj.dx;obj.dS(:);obj.dSS(:)],'vars', {'t',[obj.x;obj.S(:);obj.SS(:)], obj.theta});
3. ode45(@(t,x_values)obj.ODE_2nd_order_sensitivity_rhs(t,x_values,para),obj.time_points_to_evaluate,obj.ODE_2nd_order_sensitivity_init(para));
here the size of obj.x is 19*1; the size of obj.S() is 798*1 and the sizie of obj.SS(:) is 33516*1
even if the matrix was seperated for different parts, the error information still is : the symbolic expression is too large to calculate
Then for the large scale ODEs and multiple parameters, how to solve it
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!