How to use the andes.utils.math.aeqb function in andes

To help you get started, we’ve selected a few andes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.Ic1 = aeqb(self.Ic, 1)
        self.Ic2 = aeqb(self.Ic, 2)
        self.Ic3 = aeqb(self.Ic, 3)
        self.Ic4 = aeqb(self.Ic, 4)
        self.Ic5 = aeqb(self.Ic, 5)
        self.lsmax += mul(aeqb(self.lsmax, 0.0), 9999)
        self.lsmin += mul(aeqb(self.lsmin, 0.0), -9999)
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.Ic1 = aeqb(self.Ic, 1)
        self.Ic2 = aeqb(self.Ic, 2)
        self.Ic3 = aeqb(self.Ic, 3)
        self.Ic4 = aeqb(self.Ic, 4)
        self.Ic5 = aeqb(self.Ic, 5)
        self.lsmax += mul(aeqb(self.lsmax, 0.0), 9999)
        self.lsmin += mul(aeqb(self.lsmin, 0.0), -9999)
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.Ic1 = aeqb(self.Ic, 1)
        self.Ic2 = aeqb(self.Ic, 2)
        self.Ic3 = aeqb(self.Ic, 3)
        self.Ic4 = aeqb(self.Ic, 4)
        self.Ic5 = aeqb(self.Ic, 5)
        self.lsmax += mul(aeqb(self.lsmax, 0.0), 9999)
        self.lsmin += mul(aeqb(self.lsmin, 0.0), -9999)
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl
github cuihantao / andes / andes / models / pss.py View on Github external
def update_ctrl(self):
        self.u0 = mul(self.u, self.uavr,
                      self.usyn)  # effective PSS connectivity status
        self.Ic11 = aeqb(self.Ic1, 1)
        self.Ic12 = aeqb(self.Ic1, 2)
        self.Ic13 = aeqb(self.Ic1, 3)
        self.Ic14 = aeqb(self.Ic1, 4)
        self.Ic15 = aeqb(self.Ic1, 5)
        self.Ic21 = aeqb(self.Ic2, 1)
        self.Ic22 = aeqb(self.Ic2, 2)
        self.Ic23 = aeqb(self.Ic2, 3)
        self.Ic24 = aeqb(self.Ic2, 4)
        self.Ic25 = aeqb(self.Ic2, 5)
        # ignore the hard limiters if vcu == 0 or vcl == 0
        self.vcu += mul(aeqb(self.vcu, 0.0), 9999)
        self.vcl += mul(aeqb(self.vcl, 0.0), -9999)
        self.vtmax = self.v0 + self.vcu
        self.vtmin = self.v0 + self.vcl