Can not solve DAE! Problems with good initial values

Hello guys!
I am unexperienced in Matlab and I am struggling a lot with solving my codes with DAE system. Most of the time the warning comes:
Warning: Matrix is singular, close to singular or badly scaled. Results may be inaccurate. RCOND = NaN.
> In ode15s (line 589)
In AKANmainmodell (line 22)
Warning: Failure at t=0.000000e+00. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (7.905050e-323)
at time t.
> In ode15s (line 668)
In AKANmainmodell (line 22)
Elapsed time is 10.638367 seconds.
I think my initial values are wrong, since also sometimes I got received that error stating to choose better guess for initial value .
Here is a download link:

Answers (1)

Hi Akan,
Refer to the following link for solving DAEs using MATLAB.
You can also find the solution to the issue you are facing in the answer posted here

Categories

Find more on General Applications in Help Center and File Exchange

Tags

Asked:

on 16 Sep 2019

Answered:

on 25 Aug 2020

Community Treasure Hunt

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

Start Hunting!