Template Class Load

Inheritance Relationships

Base Type

Class Documentation

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

ZIP demand: constant-power, constant-current, and constant-impedance parts.

Public Functions

virtual Model::ConfigurationChecks verify() const override

Every demand is valid.

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 void externalConstraints(const ScalarT *x, const ScalarT *external, ScalarT *g) const override

Power into the bus, the negative of the demand.