Template Class Generator

Inheritance Relationships

Base Type

Class Documentation

template<typename scalar_type, typename index_type>
class Generator : public GridKit::OptimalPowerFlow::Component<scalar_type, index_type>

Dispatchable active and reactive power injection with a quadratic cost.

Public Functions

virtual Model::ConfigurationChecks verify() const override

Every problem with the parameters.

virtual int initialize() override

Set the bounds and any nonzero initial value.

virtual int evaluateGradient() override

Add the objective gradient.

virtual int evaluateJacobian() override

Evaluate the constraint Jacobian into jacobianEntries().

virtual int evaluateHessian(RealT sigma) override

Evaluate the lower Lagrangian Hessian into hessianEntries().

virtual ScalarT objective(const ScalarT *x, const ScalarT *external) const override

Objective contribution.

virtual void externalConstraints(const ScalarT *x, const ScalarT *external, ScalarT *g) const override

Contributions g to the constraints at each port, in port order.

inline const ScalarT &P() const

Active power into the bus [p.u.].

inline const ScalarT &Q() const

Reactive power into the bus [p.u.].