⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gaselectduplicatesparams.h

📁 遗传算法做的排课系统
💻 H
字号:

#ifndef __GA_SELECT_DUPLICATES_PARAMS_H__
#define __GA_SELECT_DUPLICATES_PARAMS_H__

#include "..\GaSelection.h"

using namespace Population;

namespace Population
{
	namespace SelectionOperations
	{

		// Parameters for controling the duplicates in selection.
		class GaSelectDuplicatesParams : public GaSelectionParams
		{

		private:

			// If set to TRUE dupilcates in result set are allowed
			bool _duplicates;

		public:

			// Initialization of the parameters
			DLL_EXPORT
			GaSelectDuplicatesParams(bool duplicates,
				int selectionSize);

			// Initialization of the parameters with default values
			DLL_EXPORT
			GaSelectDuplicatesParams();

			// Virtual copy constructor
			DLL_EXPORT
			virtual GaParameters* GACALL Clone() const;

			// Returns TRUE if dupilcates in result set are allowed
			DLL_EXPORT
			bool GACALL GetDuplicates() const;

			// Set to TRUE if dupilcates in result set are allowed
			DLL_EXPORT
			void GACALL SetDuplicates(bool duplicates);

		};// END CLASS DEFINITION GaSelectDuplicatesParams

	} // SelectionOperations
} // Population

#endif // __GA_SELECT_DUPLICATES_PARAMS_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -