how do i avoid error resulting from inconsistent initial variable deci12

2 views (last 30 days)
i am solving a DAE equation M=[1,1,1,0,0,0,0] with Reltol =1.0e-3, using the loop and after 55days i got an error which says my initial condition is not consistent deci12. the solver for the simulation is ode15s.
for Day = 1:365 for hour = 1:24
[tout,Tout]=ode15s(@sysode,t,init,options,MATERIAL,ELEMENT,Day,hour,V,z,theta,S_1,S_2,S_3,S_5,VF, T_amb_Ka, T_amb_C); %calling ode15s for solution
init = Tout(length(Tout),:);
Hour = ((Day-1)*24)+hour;
Tsol(Hour, :) = Tout(length(Tout),:);
% [Hour init];
% Tout;
% tout;
end
Day
end
thanks

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!