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

📄 genevecchromosome.h

📁 一个用c++编写的多目标遗传算法程序
💻 H
字号:
/*******************************************************************************	GeneVecChromosome.h			last change: 02/04/1999				version: 0.0.0				design:	Eckart Zitzler			Paul E. Sevinc					implementation:	Paul E. Sevinc				(c) 1998-1999:	Computer Engineering and Networks Laboratory				Swiss Federal Institute of Technology Zurich				description:			See also LinearChromosome.h			GeneVecChromosome is a concrete subclass of			LinearChromosome.						GeneVecChromosomes are useful when the different			decision variables in a chromosome aren't coded			the same way (e.g., binary and real-valued).*******************************************************************************/#ifndef GENE_VEC_CHROMOSOME_H#define GENE_VEC_CHROMOSOME_H#include <cstddef>#include <vector>#include "Chromosome.h"#include "Gene.h"#include "LinearChromosome.h"#include "RandomNr.h"#include "TIKEAFExceptions.h"using std::size_t;using std::vector;class GeneVecChromosome : public LinearChromosome{	private:			vector< Gene* >	genes;		public:			// copy the Gene*s			// the Genes are not cloned!					GeneVecChromosome( RandomNr&, vector< Gene* >& );						virtual			~GeneVecChromosome();					void		initRandom();					void		mutate();					// return a GeneVecChromosome			Chromosome*	clone();						void		setPMutation( size_t, double )						throw ( LimitsException, ProbabilityException );					void		copy( LinearChromosome*, size_t, size_t )						throw ( LimitsException );						// return a pointer to the Gene			// at the specified position			Gene*		at( size_t )						throw ( LimitsException );};#endif

⌨️ 快捷键说明

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