Is there a way to declare the type of a variable in ModelingToolkit.jl? For example something like
@variables a(t)::complex
I’m excited to start with ModelingToolkit.jl having followed its development for a while. In my field (power systems) complex variables are ubiquitous and the model is a mixture between complex and real variables. I haven’t found a way to unambiguously declare a variable as complex. I tried to use the initial conditions that are passed the
ODEProblem but this doesn’t seem to work. I think it needs to be done before simplifying the model (structural_simplify).
The current behavior is also that some real variables are assumed complex.