Ejemplo n.º 1
0
    def setParameters(self, NoGradingRuns=1, NoLs=2, NoEnabled=2, **ukwargs):
        r"""Set the algorithm parameters.

		**Arguments:**

		SR {real} -- Normalized search range
		"""
        DifferentialEvolution.setParameters(self, **ukwargs)
        self.LSs, self.NoGradingRuns, self.NoLs, self.NoEnabled = [
            MTS_LS1, MTS_LS2, MTS_LS3
        ], NoGradingRuns, NoLs, NoEnabled
        if ukwargs: logger.info('Unused arguments: %s' % (ukwargs))
Ejemplo n.º 2
0
Archivo: hde.py Proyecto: zyumons/NiaPy
	def setParameters(self, NoLsTests=1, NoLs=2, NoEnabled=2, BONUS1=10, BONUS2=2, LSs=(MTS_LS1, MTS_LS2, MTS_LS3), **ukwargs):
		r"""Set the algorithm parameters.

		Arguments:
			SR (numpy.ndarray): Search range.

		See Also:
			:func:`NiaPy.algorithms.basic.de.DifferentialEvolution.setParameters`
		"""
		DifferentialEvolution.setParameters(self, itype=ukwargs.pop('itype', MtsIndividual), **ukwargs)
		self.LSs, self.NoLsTests, self.NoLs, self.NoEnabled = LSs, NoLsTests, NoLs, NoEnabled
		self.BONUS1, self.BONUS2 = BONUS1, BONUS2
Ejemplo n.º 3
0
	def setParameters(self, F_l=0.0, F_u=1.0, Tao1=0.4, Tao2=0.2, **ukwargs):
		r"""Set the parameters of an algorithm.

		Arguments:
			F_l (Optional[float]): Scaling factor lower limit.
			F_u (Optional[float]): Scaling factor upper limit.
			Tao1 (Optional[float]): Change rate for F parameter update.
			Tao2 (Optional[float]): Change rate for CR parameter update.

		See Also:
			* :func:`NiaPy.algorithms.basic.DifferentialEvolution.setParameters`
		"""
		DifferentialEvolution.setParameters(self, itype=ukwargs.pop('itype', SolutionjDE), **ukwargs)
		self.F_l, self.F_u, self.Tao1, self.Tao2 = F_l, F_u, Tao1, Tao2
Ejemplo n.º 4
0
    def setParameters(self, F_l=0.0, F_u=2.0, Tao1=0.4, Tao2=0.6, **ukwargs):
        r"""Set the parameters of an algorithm.

		**Arguments:**

		F_l {decimal} -- scaling factor lower limit

		F_u {decimal} -- scaling factor upper limit

		Tao1 {decimal} -- change rate for F parameter update

		Tao2 {decimal} -- change rate for CR parameter update
		"""
        DifferentialEvolution.setParameters(self, **ukwargs)
        self.F_l, self.F_u, self.Tao1, self.Tao2 = F_l, F_u, Tao1, Tao2
        if ukwargs: logger.info('Unused arguments: %s' % (ukwargs))
Ejemplo n.º 5
0
Archivo: jade.py Proyecto: sisco0/NiaPy
 def setParameters(self, **kwargs):
     DifferentialEvolution.setParameters(self, **kwargs)