|
| 1 | +import numpy as np |
| 2 | +import shapely |
| 3 | + |
| 4 | +from pandapower._typing import Array1D, Array2D, Float, FloatVectorLike |
| 5 | +from pandapower.control.controller.DERController.DERBasics import BaseModel |
| 6 | + |
| 7 | +class BaseArea(BaseModel): |
| 8 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array1D[np.bool]: ... |
| 9 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array2D[np.float64]: ... |
| 10 | + |
| 11 | +class BasePQVArea(BaseArea): |
| 12 | + raise_merge_overlap: bool |
| 13 | + def __init__(self, raise_merge_overlap: bool = True) -> None: ... |
| 14 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array1D[np.bool]: ... |
| 15 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array2D[np.float64]: ... |
| 16 | + |
| 17 | +class PQAreaPOLYGON(BaseArea): |
| 18 | + p_points_pu: FloatVectorLike |
| 19 | + q_points_pu: FloatVectorLike |
| 20 | + polygon: shapely.Polygon |
| 21 | + def __init__(self, p_points_pu: FloatVectorLike, q_points_pu: FloatVectorLike) -> None: ... |
| 22 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array1D[np.bool]: ... |
| 23 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array2D[np.float64]: ... |
| 24 | + |
| 25 | +class QVAreaPOLYGON(BaseArea): |
| 26 | + q_points_pu: FloatVectorLike |
| 27 | + vm_points_pu: FloatVectorLike |
| 28 | + polygon: shapely.Polygon |
| 29 | + def __init__(self, q_points_pu: FloatVectorLike, vm_points_pu: FloatVectorLike) -> None: ... |
| 30 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array1D[np.bool]: ... |
| 31 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array2D[np.float64]: ... |
| 32 | + |
| 33 | +class PQVAreaPOLYGON(BasePQVArea): |
| 34 | + pq_area: PQAreaPOLYGON |
| 35 | + qv_area: QVAreaPOLYGON |
| 36 | + def __init__( |
| 37 | + self, |
| 38 | + p_points_pu: FloatVectorLike, |
| 39 | + q_pq_points_pu: FloatVectorLike, |
| 40 | + q_qv_points_pu: FloatVectorLike, |
| 41 | + vm_points_pu: FloatVectorLike, |
| 42 | + raise_merge_overlap: bool = True, |
| 43 | + ) -> None: ... |
| 44 | + |
| 45 | +class PQAreaSTATCOM(BaseArea): |
| 46 | + min_q_pu: FloatVectorLike |
| 47 | + max_q_pu: FloatVectorLike |
| 48 | + def __init__(self, min_q_pu: FloatVectorLike, max_q_pu: FloatVectorLike) -> None: ... |
| 49 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array1D[np.bool]: ... |
| 50 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array2D[np.float64]: ... |
| 51 | + |
| 52 | +class PQArea4120(BaseArea): |
| 53 | + version: int |
| 54 | + p_points_pu: list[float] |
| 55 | + min_q_pu: FloatVectorLike |
| 56 | + max_q_pu: FloatVectorLike |
| 57 | + q_max_under_p_point: float |
| 58 | + linear_factor_ind: FloatVectorLike |
| 59 | + linear_factor_cap: FloatVectorLike |
| 60 | + def __init__(self, min_q_pu: FloatVectorLike, max_q_pu: FloatVectorLike, version: int = 2018, **kwargs) -> None: ... |
| 61 | + def in_area(self, p_pu: FloatVectorLike, q_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array1D[np.bool]: ... |
| 62 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike | None = None) -> Array2D[np.float64]: ... |
| 63 | + |
| 64 | +class QVArea4120(BaseArea): |
| 65 | + min_q_pu: FloatVectorLike |
| 66 | + max_q_pu: FloatVectorLike |
| 67 | + max_vm_pu: float |
| 68 | + min_vm_pu: float |
| 69 | + delta_vm_pu: float |
| 70 | + linear_factor: FloatVectorLike |
| 71 | + def __init__(self, min_q_pu: FloatVectorLike, max_q_pu: FloatVectorLike) -> None: ... |
| 72 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array2D[np.float64]: ... |
| 73 | + |
| 74 | +class PQVArea4120Base(BasePQVArea): |
| 75 | + pq_area: PQArea4120 |
| 76 | + qv_area: QVArea4120 |
| 77 | + def __init__( |
| 78 | + self, min_q_pu: FloatVectorLike, max_q_pu: FloatVectorLike, version: int = 2018, raise_merge_overlap: bool = True |
| 79 | + ) -> None: ... |
| 80 | + |
| 81 | +class PQVArea4120V1(PQVArea4120Base): |
| 82 | + def __init__(self, version: int = 2018, raise_merge_overlap: bool = True) -> None: ... |
| 83 | + |
| 84 | +class PQVArea4120V2(PQVArea4120Base): |
| 85 | + def __init__(self, version: int = 2018, raise_merge_overlap: bool = True) -> None: ... |
| 86 | + |
| 87 | +class PQVArea4120V3(PQVArea4120Base): |
| 88 | + def __init__(self, version: int = 2018, raise_merge_overlap: bool = True) -> None: ... |
| 89 | + |
| 90 | +class PQArea4130(PQArea4120): |
| 91 | + def __init__(self, min_q_pu, max_q_pu) -> None: ... |
| 92 | + |
| 93 | +class QVArea4130(QVArea4120): |
| 94 | + min_q_pu: FloatVectorLike |
| 95 | + max_q_pu: FloatVectorLike |
| 96 | + vn_kv: Float |
| 97 | + variant: int |
| 98 | + min_vm_points_pu: Array1D[np.float64] |
| 99 | + max_vm_points_pu: Array1D[np.float64] |
| 100 | + min_q_points_pu: Array1D[np.float64] |
| 101 | + max_q_points_pu: Array1D[np.float64] |
| 102 | + def __init__(self, min_q_pu: FloatVectorLike, max_q_pu: FloatVectorLike, vn_kv: Float, variant: int) -> None: ... |
| 103 | + def q_flexibility(self, p_pu: FloatVectorLike, vm_pu: FloatVectorLike) -> Array2D[np.float64]: ... |
| 104 | + |
| 105 | +class PQVArea4130Base(BasePQVArea): |
| 106 | + pq_area: PQArea4130 |
| 107 | + qv_area: QVArea4130 |
| 108 | + def __init__( |
| 109 | + self, |
| 110 | + min_q_pu: FloatVectorLike, |
| 111 | + max_q_pu: FloatVectorLike, |
| 112 | + variant: int, |
| 113 | + vn_kv: Float = 380, |
| 114 | + raise_merge_overlap: bool = True, |
| 115 | + ) -> None: ... |
| 116 | + |
| 117 | +class PQVArea4130V1(PQVArea4130Base): |
| 118 | + def __init__(self, vn_kv: Float = 380, raise_merge_overlap: bool = True) -> None: ... |
| 119 | + |
| 120 | +class PQVArea4130V2(PQVArea4130Base): |
| 121 | + def __init__(self, vn_kv: Float = 380, raise_merge_overlap: bool = True) -> None: ... |
| 122 | + |
| 123 | +class PQVArea4130V3(PQVArea4130Base): |
| 124 | + def __init__(self, vn_kv: Float = 380, raise_merge_overlap: bool = True) -> None: ... |
| 125 | + |
| 126 | +class PQArea4110(PQAreaPOLYGON): |
| 127 | + def __init__(self) -> None: ... |
| 128 | + |
| 129 | +class QVArea4110(QVAreaPOLYGON): |
| 130 | + def __init__(self) -> None: ... |
| 131 | + |
| 132 | +class PQVArea4110(BasePQVArea): |
| 133 | + pq_area: PQArea4110 |
| 134 | + qv_area: QVArea4110 |
| 135 | + def __init__(self, raise_merge_overlap: bool = True) -> None: ... |
| 136 | + |
| 137 | +class PQArea4105(PQAreaPOLYGON): |
| 138 | + def __init__(self, variant: int) -> None: ... |
| 139 | + |
| 140 | +class QVArea4105(QVAreaPOLYGON): |
| 141 | + def __init__(self, variant: int) -> None: ... |
| 142 | + |
| 143 | +class PQVArea4105(BasePQVArea): |
| 144 | + pq_area: PQArea4105 |
| 145 | + qv_area: QVArea4105 |
| 146 | + def __init__(self, variant: int, raise_merge_overlap: bool = True) -> None: ... |
0 commit comments