Group Abstract Group Abstract

Message Boards Message Boards

Unexpected solution in a DAE and DiscreteVariables?

Posted 3 years ago
POSTED BY: Art Arete
3 Replies
Posted 3 years ago

Cross-posted in Mma.SE.

POSTED BY: xzczd  

Art,

It appears to be related to the DAE and its index reduction. I would contact tech support to see why this doesn't work. I even tried to force a[t] to take on discrete values of -1,1 and it failed:

DiscreteVariables -> {a \[Element] {-1, 1}}

It seems that the DAE solver is taking over and solving for a[t] ignoring its initial condition and WhenEvent. On non DAE problems this works fine. I'm guessing that the index reduction is somehow taking over a[t].

I hope this helps.

Regards,

Neil

POSTED BY: Neil Singer
Posted 3 years ago

Neil, Thank you very much for your interest. I have reported the problem. When I have a response, I will post it.

Best regards.

POSTED BY: Art Arete
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard