Template Class Bus
Defined in File Bus.hpp
Inheritance Relationships
Base Type
public GridKit::OptimalPowerFlow::Component< scalar_type, index_type >(Template Class Component)
Class Documentation
-
template<typename scalar_type, typename index_type>
class Bus : public GridKit::OptimalPowerFlow::Component<scalar_type, index_type> Bus voltage in Cartesian coordinates, power balance, and shunt admittance to ground.
Public Functions
-
virtual Model::ConfigurationChecks verify() const override
Every problem with the parameters.
-
virtual int initialize() override
Set the bounds and the flat start.
-
virtual int evaluateGradient() override
Evaluate \(\nabla f\) into
gradient().
-
virtual int evaluateJacobian() override
Evaluate the Jacobian of \(g\) into
getCsrJacobian().
-
virtual int evaluateHessian(RealT sigma) override
Evaluate the lower Hessian of \(\sigma f + \lambda^T g\) into
getCsrHessian().
-
virtual void internalConstraints(const ScalarT *x, const ScalarT *external, ScalarT *g) const override
Shunt power into the bus, which starts its balance, and the squared voltage magnitude.
-
inline const ScalarT &Vr() const
Real voltage [p.u.].
-
inline const ScalarT &Vi() const
Imaginary voltage [p.u.].
Public Static Attributes
-
static IdxT NUM_SHARED_VARIABLES = Utilities::enum_size<BusInternalVariables>()
A port to the bus reads its voltage and contributes to its power balance, the constraints before
VM2.
-
virtual Model::ConfigurationChecks verify() const override