예제 #1
0
	def setParameters(self, rp=0, pmax=10, **ukwargs):
		r"""Set the parameters of an algorithm.

		Arguments:
			rp (Optional[int]): Small non-negative number which is added to value of genp (if it's not divisible).
			pmax (Optional[int]): Number of population reductions.

		See Also:
			* :func:`NiaPy.algorithms.modified.SelfAdaptiveDifferentialEvolution.setParameters`
		"""
		DynNpDifferentialEvolution.setParameters(self, rp=rp, pmax=pmax, **ukwargs)
		SelfAdaptiveDifferentialEvolution.setParameters(self, **ukwargs)
예제 #2
0
파일: hde.py 프로젝트: taylorhawks/NiaPy
	def setParameters(self, pmax=10, rp=3, **ukwargs):
		r"""Set core parameters or DynNpDifferentialEvolutionMTS algorithm.

		Args:
			pmax (Optional[int]):
			rp (Optional[float]):
			**ukwargs (Dict[str, Any]): Additional arguments.

		See Also:
			* :func:`NiaPy.algorithms.modified.hde.DifferentialEvolutionMTS.setParameters`
			* :func`NiaPy.algorithms.basic.de.DynNpDifferentialEvolution.setParameters`
		"""
		DynNpDifferentialEvolution.setParameters(self, pmax=pmax, rp=rp, **ukwargs)
		DifferentialEvolutionMTS.setParameters(self, **ukwargs)
예제 #3
0
	def postSelection(self, pop, task, **kwargs):
		r"""Post selection operator.

		Args:
			pop (numpy.ndarray[Individual]): Current population.
			task (Task): Optimization task.

		Returns:
			numpy.ndarray[Individual]: New population.
		"""
		return DynNpDifferentialEvolution.postSelection(self, pop, task, **kwargs)
예제 #4
0
파일: hde.py 프로젝트: taylorhawks/NiaPy
	def postSelection(self, X, task, xb, **kwargs):
		nX = DynNpDifferentialEvolution.postSelection(self, X, task)
		nX = DifferentialEvolutionMTS.postSelection(self, nX, task, xb)
		return nX