juliaodemodelingtoolkit

Drop off equations when transform equations from DAEs to ODE by structural_simplify of ModelingToolkit


I tried to create ODE equations from DAEs by ModelToolkit.ji. However, after using structural_simplify() function, there are several equations have been dropped down. (The equations drop from 56 to 49). Please help me to address this problem.


Solution

  • This is intended. structural_simplify simplifies the structure by deleting redundant equations. You can get them out of the solution via symbolic indexing.