andes.core.block.PIController#
- class andes.core.block.PIController(u, kp, ki, ref=0.0, x0=0.0, name=None, tex_name=None, info=None)[source]#
Proportional Integral Controller.
The controller takes an error signal as the input. It takes an optional ref signal, which will be subtracted from the input.
- Parameters:
- uBaseVar
The input variable instance
- kpBaseParam
The proportional gain parameter instance
- ki[type]
The integral gain parameter instance
Methods
define()Define equations for the PI Controller.
enforce_tex_name(fields)Enforce tex_name is not None
export()Method for exporting instances defined in this class in a dictionary.
f_numeric(**kwargs)Function call to update differential equation values.
g_numeric(**kwargs)Function call to update algebraic equation values.
j_numeric(**kwargs)Per-iteration numerical Jacobian update.
j_reset()Helper function to clear the lists holding the numerical Jacobians.
j_setup()One-time Jacobian sparsity pattern and constant value setup.
Attributes
class_nameReturn the class name.