4141#include " ChooseSolver.hpp"
4242
4343// TODO implement a BFS check to make sure the Ymatrix is "connected" [one single component]
44- class GridModel final // : public GenericContainer // TODO remove that inheritance
44+ class GridModel final
4545{
4646 public:
4747 typedef Eigen::Array<int , Eigen::Dynamic, Eigen::RowMajor> IntVectRowMaj;
@@ -53,7 +53,6 @@ class GridModel final // : public GenericContainer // TODO remove that inherita
5353 std::vector<int >, // ls_to_orig
5454 real_type, // init_vm_pu
5555 real_type, // sn_mva
56- // std::vector<real_type>, // bus_vn_kv
5756 std::vector<bool >, // bus_status
5857 SubstationContainer::StateRes,
5958 // powerlines
@@ -1190,11 +1189,6 @@ class GridModel final // : public GenericContainer // TODO remove that inherita
11901189 real_type get_computation_time () const { return _solver.get_computation_time ();}
11911190 real_type get_dc_computation_time () const { return _dc_solver.get_computation_time ();}
11921191
1193- // private:
1194- // using GenericContainer::update_bus_status; // to silence clang warnings (overload-virtual)
1195- // public:
1196- // void update_bus_status(int nb_bus_before,
1197- // Eigen::Ref<Eigen::Array<bool, Eigen::Dynamic, 2, Eigen::RowMajor> > active_bus);
11981192 // part dedicated to grid2op backend, optimized for grid2op data representation (for speed)
11991193 // this is not recommended to use it outside of its intended usage within grid2op !
12001194 void update_gens_p (Eigen::Ref<Eigen::Array<bool , Eigen::Dynamic, Eigen::RowMajor> > has_changed,
@@ -1325,21 +1319,13 @@ class GridModel final // : public GenericContainer // TODO remove that inherita
13251319 const SolverControl & solver_control);
13261320
13271321 // for FDPF
1328- // private:
1329- // using GenericContainer::fillBp_Bpp; // silence clang warning overload-virtual
1330- public:
13311322 void fillBp_Bpp (Eigen::SparseMatrix<real_type> & Bp,
13321323 Eigen::SparseMatrix<real_type> & Bpp,
13331324 FDPFMethod xb_or_bx) const ;
1334-
13351325 void init_fdpf_coeffs (){
13361326 powerlines_.init_fdpf_coeffs ();
13371327 trafos_.init_fdpf_coeffs ();
13381328 }
1339-
1340- // private:
1341- // using GenericContainer::fillBf_for_PTDF; // silence clang warning overload-virtual
1342- public:
13431329 void fillBf_for_PTDF (Eigen::SparseMatrix<real_type> & Bf, bool transpose=false ) const ;
13441330
13451331 Eigen::SparseMatrix<real_type> debug_get_Bp_python (FDPFMethod xb_or_bx){
@@ -1358,13 +1344,7 @@ class GridModel final // : public GenericContainer // TODO remove that inherita
13581344 }
13591345
13601346 protected:
1361- void set_ls_to_orig_internal (const IntVect & ls_to_orig); // set both _ls_to_orig and _orig_to_ls
1362-
1363- // compute admittance matrix
1364- // dc powerflow
1365- // void init_dcY(Eigen::SparseMatrix<real_type> & dcYbus);
1366-
1367- // ac powerflows
1347+ void set_ls_to_orig_internal (const IntVect & ls_to_orig) noexcept ; // set both _ls_to_orig and _orig_to_ls
13681348
13691349 // init the Ybus matrix (its size, it is filled up elsewhere) and also the
13701350 // converter from "my bus id" to the "solver bus id" (id_me_to_solver and id_solver_to_me)
@@ -1489,9 +1469,6 @@ class GridModel final // : public GenericContainer // TODO remove that inherita
14891469 }
14901470 return res;
14911471 }
1492-
1493- // private:
1494- // using GenericContainer::fillYbus; // to silence the overload-virtual warning in clang
14951472
14961473 protected:
14971474 void fillYbus (Eigen::SparseMatrix<cplx_type> & res, bool ac, const std::vector<SolverBusId>& id_me_to_solver);
0 commit comments