Hello everyone,
Currently, the Simulator reads only the initial guesses for the differential variables and provides them to the Casadi integrator instance. I recommend that we enhance this process by obtaining the initial guesses for the algebraic variables from the Pyomo Var, which represents algebraic variables, and passing them to the Casadi integrator using the keyword argument 'z0'.
This change is particularly crucial in my case because the current approach results in a failure during the initial condition calculation of IDAS. To address this issue, I had to implement a workaround in my simulator, which looks like this:
I must emphasize that this solution may require further testing and might be specific to my use case. However, it was essential for me to ensure that IDAS integrates my DAE correctly.
If anyone has insights or would like to collaborate on implementing a more robust version of this workaround, I'm open to discussions and cooperation.