亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gachromosome.h

?? 遺傳算法做的排課系統(tǒng)
?? H
?? 第 1 頁 / 共 2 頁
字號:

		// Returns index of chromosome in population
		DLL_EXPORT
		int GACALL GetIndex() const;

		// Return's population to which this chromosome belongs
		DLL_EXPORT
		GaPopulation& GACALL GetPopulation() const;

		// Returns pointer to chromosome
		DLL_EXPORT
		GACALL operator GaChromosomePtr() const;

		// Returns scaled fitness value
		DLL_EXPORT
		GACALL operator float() const;

	};// END CLASS DEFINITION GaScaledChromosome

	class GaDefaultChromosome;

	// Container for chromosome parameters
	class GaChromosomeParamsBlock
	{
		friend class GaDefaultChromosome;

	protected:

		// Paremeters for execution of GA operations over chromosome
		GaChromosomeParams* _parameters;

	public:

		// Initialize block
		DLL_EXPORT
		GaChromosomeParamsBlock(GaChromosomeParams* parameters);

		// Copy constructor
		DLL_EXPORT
		GaChromosomeParamsBlock(const GaChromosomeParamsBlock& rhs);

		// Initialize empty block
		DLL_EXPORT
		GaChromosomeParamsBlock();

		// Returns referenct to parameters
		DLL_EXPORT
		const GaChromosomeParams& GACALL GetParameters() const;

		// Sets pointer to chromosome's parameters
		DLL_EXPORT
		void GACALL SetParameters(GaChromosomeParams* params);

	};// END CLASS DEFINITION GaChromosomeParamsBlock

	// Implements some behavior concerning fitness value, parameters
	// and preaparing chromosome for crossover and mutation operations.
	class GaDefaultChromosome : public GaChromosome
	{

	protected:

		// Fitness value
		float _fitness;

		// Configuration block of chromosome contains parameters, operations and others
		GaChromosomeParamsBlock* _configBlock;

	public:

		// Initialization of chromosome values
		DLL_EXPORT
		GaDefaultChromosome(GaChromosomeParamsBlock* configBlock);

		// Copy constructor
		DLL_EXPORT
		GaDefaultChromosome(const GaDefaultChromosome& c,
			bool setupOnly);

		// Mutation operation
		DLL_EXPORT
		virtual void GACALL Mutation();

		// Performs crossover operation and make new chiled from this and another given chromosome,
		DLL_EXPORT
		virtual GaChromosomePtr GACALL Crossover(GaChromosomePtr secondParent) const;

		// Returns fitness of the chromosome
		DLL_EXPORT
		virtual float GACALL GetFitness() const;

		// Compares fitnesses of two chromosomes. Returns:
		//  a, -1 if the fitness value of this chromosome is lower then the value of the given chromosome
		//  b.  0 if the fitness values of both chromosomes are equal
		//  c.  1 if the fitness value of this chromosome is greater then the value of the given chromosome
		DLL_EXPORT
		virtual int GACALL CompareFitnesses(GaChromosomePtr c) const;

		// Compares fitnesses of two chromosomes. Returns:
		//  a, -1 if the fitness value of this chromosome is lower then the given value
		//  b.  0 if the fitness values of both chromosomes are equal
		//  c.  1 if the fitness value of this chromosome is greater then the given value
		DLL_EXPORT
		virtual int GACALL CompareFitnesses(float c) const=0;

		// Refresh fitness value of chromosome
		DLL_EXPORT
		virtual void GACALL RefreshFitness();

		// Returns algorithm's parameters of chromosome
		DLL_EXPORT
		virtual const GaChromosomeParams& GACALL GetParameters() const;

		// Sets algorithm's parameters of chromosome
		DLL_EXPORT
		virtual void GACALL SetParameters(GaChromosomeParams* p);

		// Returns referenc to chromosome's configuration block
		DLL_EXPORT
		virtual const GaChromosomeParamsBlock& GACALL GetConfigBlock() const;

		// Sets pointer to chromosome's configuration block
		DLL_EXPORT
		virtual void GACALL SetConfigBlock(GaChromosomeParamsBlock* block);

		// Copy data and setup from given source chromosome
		DLL_EXPORT
		virtual GaChromosome& GACALL operator =(const GaChromosome& rhs);

	protected:

		// Executes mutation operation
		virtual void GACALL PerformMutation()=0;

		// Performs crossover operation and make new chiled from this and another given chromosome
		virtual GaChromosomePtr GACALL PerformCrossover(GaChromosomePtr secondParent) const=0;

		// Saves current chromosome's code before mutation
		virtual void GACALL PreapareForMutation()=0;

		// Accepts mutation and deletes backuped code
		virtual void GACALL AcceptMutation()=0;

		// Rejects mutation and restores backuped chromosome's code
		virtual void GACALL RejectMutation()=0;

	};// END CLASS DEFINITION GaDefaultChromosome

	class GaCrossoverOperation;
	class GaMutationOperation;
	class GaFitnessOperation;
	class GaDynamicOperationChromosome;

	// Container for chromosome's operations and parameters
	class GaChromosomeOperationsBlock : public GaChromosomeParamsBlock
	{
		friend class GaDynamicOperationChromosome;

	protected:

		// Current operation for calculation of fitness value
		GaFitnessOperation* _fitnessOperation;

		// Comparator of the fitness values
		GaFitnessComparator* _fitnessComparator;

		// Current mutation operation
		GaMutationOperation* _mutationOperation;

		// Current crossover operation
		GaCrossoverOperation* _crossoverOperation;

	public:

		// Initialize chromosome's operations block
		DLL_EXPORT
		GaChromosomeOperationsBlock(GaCrossoverOperation* crossoverOperation,
			GaMutationOperation* mutationOperation,
			GaFitnessOperation* fitnessOperation,
			GaFitnessComparator* fitnessComparator,
			GaChromosomeParams* parameters);

		// Copy constructor
		DLL_EXPORT
		GaChromosomeOperationsBlock(const GaChromosomeOperationsBlock& rhs);

		// Initialize empty block
		DLL_EXPORT
		GaChromosomeOperationsBlock();

		// Returns crossover operation
		DLL_EXPORT
		const GaCrossoverOperation& GACALL GetCrossoverOperation() const;

		// Sets crossover operation
		DLL_EXPORT
		void GACALL SetCrossoverOperation(GaCrossoverOperation* operation);

		// Returns mutation operation
		DLL_EXPORT
		const GaMutationOperation& GACALL GetMutationOperation() const;

		// Sets mutation operation
		DLL_EXPORT
		void GACALL SetMutationOperation(GaMutationOperation* operation);

		// Returns fitness operation
		DLL_EXPORT
		const GaFitnessOperation& GACALL GetFitnessOperation() const;

		// Sets fitness operation
		DLL_EXPORT
		void GACALL SetFitnessOperation(GaFitnessOperation* operation);

		// Returns fitness value comparator
		DLL_EXPORT
		const GaFitnessComparator& GACALL GetFitnessComparator() const;

		// Sets fitness value comaprator
		DLL_EXPORT
		void GACALL SetFitnessComparator(GaFitnessComparator* comparator);

	};// END CLASS DEFINITION GaChromosomeOperationsBlock

	// Implements features needed to dynamically change GA operations on chromosome
	class GaDynamicOperationChromosome : public GaDefaultChromosome
	{

	public:

		// Initialize chromosome
		DLL_EXPORT
		GaDynamicOperationChromosome(GaChromosomeOperationsBlock* configBlock);

		// Copy constructor
		DLL_EXPORT
		GaDynamicOperationChromosome(const GaDynamicOperationChromosome& c,
			bool setupOnly);

		// Compares fitnesses of two chromosomes. Returns:
		//  a, -1 if the fitness value of this chromosome is lower then the given value
		//  b.  0 if the fitness values of both chromosomes are equal
		//  c.  1 if the fitness value of this chromosome is greater then the given value
		DLL_EXPORT
		virtual int GACALL CompareFitnesses(float c) const;

	protected:

		// Performs crossover operation and make new chiled from this and another given chromosome,
		DLL_EXPORT
		virtual GaChromosomePtr GACALL PerformCrossover(GaChromosomePtr secondParent) const;

		// Performs mutation operation
		DLL_EXPORT
		virtual void GACALL PerformMutation();

		// Calculate the fitness of chromosome
		DLL_EXPORT
		virtual float GACALL CalculateFitness() const;

	};// END CLASS DEFINITION GaDynamicOperationChromosome

} // Chromosome

#endif // __GA_CHROMOSOME_H__

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲自拍欧美精品| www.日本不卡| 高清国产一区二区三区| 欧美日韩和欧美的一区二区| 国产日韩精品久久久| 日韩电影在线免费观看| 一本色道久久加勒比精品| 久久精品亚洲精品国产欧美kt∨ | 精品视频在线看| 中文一区二区在线观看| 日韩电影免费在线| 欧美性大战久久久久久久| 国产精品免费观看视频| 狠狠色2019综合网| 欧美一区二区三区视频在线观看| 国产精品视频九色porn| 国产二区国产一区在线观看 | 亚洲人成在线观看一区二区| 日韩电影在线看| a美女胸又www黄视频久久| 精品福利一二区| 亚洲成人资源在线| 欧美日韩一区二区三区四区| 一区二区欧美视频| 色天使色偷偷av一区二区| 中文字幕一区在线| 成人黄页在线观看| 国产日韩影视精品| 国产v综合v亚洲欧| 亚洲国产精品二十页| 国产一区二区三区视频在线播放| 日韩免费看的电影| 久久99久久久久久久久久久| 日韩视频一区二区三区| 免播放器亚洲一区| 日韩午夜在线观看| 精品一区二区在线播放| 26uuu成人网一区二区三区| 日韩av成人高清| 日韩视频一区在线观看| 狠狠狠色丁香婷婷综合久久五月| 久久久久久99久久久精品网站| 国产一区二区影院| 日本一区二区电影| 99精品久久免费看蜜臀剧情介绍| 一区二区高清在线| 欧美精品黑人性xxxx| 精品一区二区三区欧美| 久久精品一区二区三区不卡牛牛| 国产成人精品免费视频网站| 国产精品久久久一本精品| 色婷婷精品久久二区二区蜜臂av | 国产伦精一区二区三区| 欧美国产日韩一二三区| 91原创在线视频| 亚洲综合一区二区三区| 日韩三级视频中文字幕| 福利电影一区二区三区| 亚洲女同女同女同女同女同69| 欧美色视频一区| 97超碰欧美中文字幕| 亚洲国产欧美日韩另类综合 | 成人aa视频在线观看| 午夜精品久久久久久久99樱桃| 欧美一区二区三区爱爱| 岛国av在线一区| 午夜精品久久久久久久久久| 久久久不卡网国产精品二区| 日本久久一区二区| 极品美女销魂一区二区三区| 亚洲男人天堂av网| 26uuu久久天堂性欧美| 一本大道av伊人久久综合| 美脚の诱脚舐め脚责91| 亚洲欧美日韩国产另类专区| 日韩欧美一区在线观看| 91麻豆免费看片| 国产裸体歌舞团一区二区| 亚洲一区二区视频| 国产精品卡一卡二| 欧美成人一区二区三区在线观看 | 日本成人在线视频网站| 中文欧美字幕免费| 欧美一区二区女人| 一本到高清视频免费精品| 国产又粗又猛又爽又黄91精品| 一区二区成人在线| 国产精品久久久久久久浪潮网站| 日韩免费一区二区三区在线播放| 欧美视频在线观看一区| 成人激情免费网站| 韩国一区二区视频| 国产精品亚洲视频| 日韩在线观看一区二区| 亚洲色图欧洲色图婷婷| 国产农村妇女精品| 26uuuu精品一区二区| 91麻豆精品国产91久久久久久 | 成熟亚洲日本毛茸茸凸凹| 乱一区二区av| 视频一区国产视频| 亚洲一二三四区| 亚洲男人的天堂在线aⅴ视频| 国产欧美一区二区精品久导航 | 99国产精品国产精品久久| 国产电影一区二区三区| 久久99精品国产| 美女一区二区在线观看| 琪琪一区二区三区| 午夜激情综合网| 五月天激情综合| 日韩电影在线观看一区| 秋霞电影网一区二区| 日韩在线播放一区二区| 男女激情视频一区| 另类综合日韩欧美亚洲| 激情图区综合网| 国产精品夜夜嗨| av日韩在线网站| 一本色道久久综合亚洲91| 色婷婷国产精品综合在线观看| 一本一本久久a久久精品综合麻豆| 99久久精品国产一区二区三区 | 亚洲国产一区二区三区| 五月婷婷另类国产| 日韩国产欧美三级| 免费观看一级特黄欧美大片| 美美哒免费高清在线观看视频一区二区| 日本91福利区| 国产一区二区主播在线| 国产91综合网| 日本高清视频一区二区| 在线观看91精品国产麻豆| 91精品国产综合久久香蕉的特点| 日韩一区二区在线观看视频 | 国产成人免费视频网站 | 成人av在线一区二区三区| 99综合电影在线视频| 欧美性受xxxx| 日韩一区二区免费在线电影| www欧美成人18+| 亚洲欧美怡红院| 肉丝袜脚交视频一区二区| 精品一区二区三区的国产在线播放| 丁香六月综合激情| 欧美色精品天天在线观看视频| 日韩欧美国产三级| 亚洲欧美区自拍先锋| 天使萌一区二区三区免费观看| 国产精品综合av一区二区国产馆| 欧美美女bb生活片| 国产蜜臀av在线一区二区三区| 成人欧美一区二区三区| 奇米影视一区二区三区| 成人av免费观看| 欧美不卡一区二区三区四区| |精品福利一区二区三区| 日韩激情av在线| av不卡在线播放| 日韩精品一区国产麻豆| 亚洲欧美综合另类在线卡通| 美国十次了思思久久精品导航| 99re66热这里只有精品3直播| 欧美久久久久中文字幕| 国产精品国产三级国产| 久久精品国产99国产| 91九色02白丝porn| 国产欧美日韩综合| 免费美女久久99| 欧美亚洲综合网| 国产精品你懂的在线欣赏| 青草国产精品久久久久久| 欧洲一区在线电影| 中文字幕精品—区二区四季| 久热成人在线视频| 欧美男女性生活在线直播观看| 国产精品色一区二区三区| 狠狠色丁香久久婷婷综合_中 | 免费成人美女在线观看| 91亚洲国产成人精品一区二三| 亚洲精品一区二区三区香蕉| 日本午夜一区二区| 欧美私模裸体表演在线观看| 亚洲精品免费电影| 99久久精品国产观看| 中文字幕国产一区| 国产精品123| 久久久国产精品麻豆| 精彩视频一区二区| 日韩精品在线一区二区| 亚洲超碰97人人做人人爱| 欧美在线高清视频| 一区二区三区.www| 99久久国产综合精品麻豆| 中文字幕av一区二区三区高| 国产+成+人+亚洲欧洲自线| 久久午夜国产精品| 国产精品一区二区久久精品爱涩| 久久久久国产一区二区三区四区| 国产乱淫av一区二区三区|