NREL / SOEP-QSS-Test

0 stars 1 forks source link

Numerical Differentiation #4

Open DeadParrot opened 3 years ago

DeadParrot commented 3 years ago

QSS uses numerical differentiation (ND) for state variable and event indicator second and third derivatives and for event indicator first derivatives when directional derivatives are not working/selected. ND creates a number of serious obstacles for QSS:

Longer term, an automatic differentiation (AD) capability (that exploits sparsity) would be very desirable for QSS performance and code clarity. The current OCT directional derivative support does not appear to be exploiting sparsity and so was found to be much too inefficient for QSS, but with more recent QSS development that exploits more batching and binning even this directional derivative support may be useful for state variable second derivatives.

The current/potential action items related to the ND issues are: