First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
In case you retrieve the state variable from the API, why don't you calculate it in an 'a posteriori' pattern, after the value of the state variable is available? You could calculate it as a divided difference, since the time step is known.