Question about Algeb diag_eps #185
-
Hi Hantao, I'm curious about the Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Answer from Hantao:
For example: self.vi = Algeb(info='Total input voltages',
tex_name='V_i',
unit='p.u.',
e_str='ue * (-v + vref - WF_y - vi)',
v_str='-v + vref',
diag_eps=True,
) Here if we compute the derivative of Therefore, adding a small value avoids the singularity in such cases. If Note: Jinning |
Beta Was this translation helpful? Give feedback.
Answer from Hantao:
diag_eps
adds an additional small element to the diagonal element in the Jacobian matrix corresponding to this equation and variable. It is needed when the derivative of this equation w.r.t this variable may not be zero to avoid singularity.For example:
Here if we compute the derivative of
vi
(considere_str
as a functiong(vi) = 0
and computedg / d (vi)
), we get-ue
. If the device is tripped during the simulation, the connecti…