Jun-07-2019, 02:36 PM
What I need is to know how to put a condition for the value of Areas
so if there is an Area at port 0 the value will be 0.1
if there is an Area at port 1 the value will be 0.2
I need this to be here
if I can do this my problem will be resolved.
so if there is an Area at port 0 the value will be 0.1
if there is an Area at port 1 the value will be 0.2
I need this to be here
def Values1(self): equation = Equation(1, uCounter) #where Equation is an array class for p in range(self.nPorts): #nPorts is the number of ports with an area equation.A[0, self.m.gid[p]] = self.Areas[p] #the multible values of the Area will be put into an array equation.A equation.c[0] = 0.0 #This is a vector return(equation)in the self.Areas[p]
if I can do this my problem will be resolved.