def __init__(self,dummyfunc,pspace): Pind.__init__(self,dummyfunc,pspace) self.a=[1., 1.5, 2.] self.w=[5. ,4.8, 4.9] self.nt=101 self.t=arange(self.nt,dtype=float) self.theta=2*pi/(self.nt-1) self.trial=zeros(self.nt) self.target=zeros(self.nt) self.initialize_target() self.plotpath=join(getcwd(),'plots')
def __init__(self, dummyfunc, pspace): Pind.__init__(self, dummyfunc, pspace) self.a = [1., 1.5, 2.] self.w = [5., 4.8, 4.9] self.nt = 101 self.t = arange(self.nt, dtype=float) self.theta = 2 * pi / (self.nt - 1) self.trial = zeros(self.nt) self.target = zeros(self.nt) self.initialize_target() self.plotpath = join(getcwd(), 'plots')
def __init__(self,objfunc,paramspace): PSO_Individ.__init__(self,objfunc,paramspace) self.traj=[] self.trajqual=[]
def __init__(self, objfunc, paramspace): PSO_Individ.__init__(self, objfunc, paramspace) self.traj = [] self.trajqual = []