Template Class Branch

Inheritance Relationships

Base Type

Class Documentation

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

Line or off-nominal transformer between two buses, with power positive into the buses.

Public Functions

virtual Model::ConfigurationChecks verify() const override

Every problem with the parameters.

virtual int tagInequality() override

Fill tag(), true for an inequality and false for an equality.

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

Contributions g to the internal constraints.

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

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