deltaFlow
Jacobian.H
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Saud Zahir
3 *
4 * This file is part of deltaFlow.
5 *
6 * deltaFlow is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
10 *
11 * deltaFlow is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public
17 * License along with deltaFlow. If not, see
18 * <https://www.gnu.org/licenses/>.
19 */
20
41#ifndef JACOBIAN_H
42#define JACOBIAN_H
43
44#include <Eigen/Dense>
45#include <vector>
46
61Eigen::MatrixXd computeJacobian(
62 const Eigen::VectorXd& V,
63 const Eigen::VectorXd& delta,
64 int n_bus,
65 int n_pq,
66 const std::vector<int>& pq_bus_id,
67 const Eigen::MatrixXd& G,
68 const Eigen::MatrixXd& B,
69 const Eigen::VectorXd& P,
70 const Eigen::VectorXd& Q
71);
72
73#endif
Eigen::MatrixXd computeJacobian(const Eigen::VectorXd &V, const Eigen::VectorXd &delta, int n_bus, int n_pq, const std::vector< int > &pq_bus_id, const Eigen::MatrixXd &G, const Eigen::MatrixXd &B, const Eigen::VectorXd &P, const Eigen::VectorXd &Q)
Computes the Jacobian matrix for the Newton-Raphson power flow solver.
Definition Jacobian.C:30