TDS.fg_update#

TDS.fg_update(models, init=False)[source]#

Perform one round of evaluation for one iteration step. The following operations are performed in order:

  • discrete flags updating through l_update_var

  • variable service updating through s_update_var

  • evaluation of the right-hand-side of f

  • equation-dependent discrete flags updating through l_update_eq

  • evaluation of the right-hand-side of g

  • collection of residuals into dae through fg_to_dae.