GallaghersGaussian101mePeaksFunction::GallaghersGaussian101mePeaksFunction( const arma::uword numberOfDimensions) : BlackBoxOptimisationBenchmark(numberOfDimensions), weight_(arma::join_cols(arma::Col<double>({10.0}), arma::linspace<arma::Col<double>>(1.1, 9.1, 100))) { setRotationQ(getRandomRotationMatrix(numberOfDimensions_)); setLocalParameterConditionings(getRandomLocalParameterConditionings()); setLocalParameterTranslations(getRandomLocalParameterTranslations()); }
GallaghersGaussian21hiPeaksFunction<T>::GallaghersGaussian21hiPeaksFunction( const std::size_t numberOfDimensions) noexcept : BlackBoxOptimisationBenchmark<T>(numberOfDimensions), weight_(arma::join_cols(arma::Col<double>({10.0}), arma::linspace<arma::Col<double>>(1.1, 9.1, 20))) { setRotationQ(getRandomRotationMatrix(this->numberOfDimensions_)); setLocalParameterConditionings(getRandomLocalParameterConditionings()); setLocalParameterTranslations(getRandomLocalParameterTranslations()); }