|
Harmony
HARMONic stabilitY assessment of PE-penetrated power systems
|
Abstract controller with per-channel reference values. More...
#include <Controller.h>


Public Member Functions | |
| Controller (const std::string &symbol, const vector< double > &value, int number_signals, std::vector< double > refs={ 0 }) | |
| Construct a controller with reference setpoints. | |
| virtual Eigen::VectorXd | define_equations (const Eigen::VectorXd &x, const Eigen::VectorXd &u, const Eigen::VectorXd &c) |
| Controller dynamics for vector states and signals. | |
| virtual Eigen::VectorXd | define_equations (const double x, const double u, const double c) |
| Controller dynamics for scalar state and signals. | |
| virtual void | printValues () override |
| Print reference values to standard output. | |
| void | setReference (const std::vector< double > &ref) |
| Replace all reference setpoints. | |
| void | setReference (const double ref, int i) |
| Set one reference channel. | |
| std::vector< double > | getReference () const |
| Return a copy of the current reference vector. | |
| std::string | getControllerSymbol () const |
| Return the controller symbol/name. | |
| int | getNumberOfSignals () const |
| Return the number of control channels. | |
| virtual vector< double > | getParameters () const |
| Return controller-specific parameters (implemented by subclasses). | |
| virtual void | setParameters (const vector< double > ¶ms) |
| Set controller-specific parameters (implemented by subclasses). | |
| virtual | ~Controller ()=default |
Protected Attributes | |
| std::string | controller_symbol |
| bool | active = false |
| std::vector< double > | reference |
Abstract controller with per-channel reference values.
Subclasses implement define_equations and store gain parameters.
|
inline |
Construct a controller with reference setpoints.
| symbol | Controller symbol/name. |
| value | Gain parameter vector (interpreted by derived classes). |
| number_signals | Number of control channels. |
| refs | Reference values per channel (default zero). |
|
virtualdefault |
|
inlinevirtual |
Controller dynamics for scalar state and signals.
| x | Integrator or auxiliary state. |
| u | Measured input value. |
| c | Feed-forward or constant output value. |
Reimplemented in ProportionalController, and ProportionalIntegralController.
|
inlinevirtual |
Controller dynamics for vector states and signals.
| x | Integrator or auxiliary state vector. |
| u | Measured input vector. |
| c | Feed-forward or constant output vector. |
Reimplemented in ProportionalController, and ProportionalIntegralController.
|
inline |
Return the controller symbol/name.
References controller_symbol.
|
inline |
Return the number of control channels.
References reference.
|
inlinevirtual |
Return controller-specific parameters (implemented by subclasses).
Reimplemented in ProportionalController, and ProportionalIntegralController.
References reference.
|
inline |
Return a copy of the current reference vector.
References reference.
|
inlineoverridevirtual |
Print reference values to standard output.
Reimplemented from ControlBlock.
Reimplemented in ProportionalController, and ProportionalIntegralController.
References reference.
Referenced by MMC::printElementValues().
|
inlinevirtual |
Set controller-specific parameters (implemented by subclasses).
| params | Parameter vector. |
Reimplemented in ProportionalController, and ProportionalIntegralController.
|
inline |
|
inline |
|
protected |
|
protected |
Referenced by getControllerSymbol().
|
protected |
Referenced by ProportionalController::define_equations(), ProportionalIntegralController::define_equations(), ProportionalController::define_equations(), ProportionalIntegralController::define_equations(), getNumberOfSignals(), getParameters(), getReference(), printValues(), ProportionalController::printValues(), ProportionalIntegralController::printValues(), setReference(), and setReference().