Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 def do_step(self):
     PSO_Individ.do_step(self)
     self.memorize()
Beispiel #4
0
 def __init__(self,objfunc,paramspace):
     PSO_Individ.__init__(self,objfunc,paramspace)
     self.traj=[]
     self.trajqual=[]
Beispiel #5
0
 def do_step(self):
     PSO_Individ.do_step(self)
     self.memorize()
Beispiel #6
0
 def __init__(self, objfunc, paramspace):
     PSO_Individ.__init__(self, objfunc, paramspace)
     self.traj = []
     self.trajqual = []