📄 individual.h
字号:
// individual.h: interface for the Cindividual class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_INDIVIDUAL_H__615B27E8_AC7A_47B7_B28E_BA6D4CCF0720__INCLUDED_)
#define AFX_INDIVIDUAL_H__615B27E8_AC7A_47B7_B28E_BA6D4CCF0720__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class Cindividual
{
public:
Cindividual();
virtual ~Cindividual();
void InitializtionIndividual(int ObjectNum, int Dimension, int ChromosomeLength,int FunctionMode);
void InitializtionIndividual1(int ObjectNum, int Dimension, int ChromosomeLength,int FunctionMode);
void CalculateObjectValue();
void CalculateFitnessValue(int FunctionMode);
void InitializtionChromosome();
void DesignChromosome();
void SetChromosome(int *ChromosomeValue);
void DecodeChromosome();
void OutputObjectValue();
void OutputParameterValue();
void OutputCode();
void OutputDetailInformation();
void OutputFitnessValue();
void GetFitnessValue(double *FitnessValue);
int GetChromosomeLength();
void GetChromosomeValue(int *ChromosomeValue);
int GetObjectNum();
int GetDimensionNum();
void SetObjectValue(double *ObjectValue);
void GetObjectValue(double *ObjectValue);
void GetParameterValue(double *ParameterValue);
void SetParameterValue(double *ParameterValue);
void SetSelectionRate(double SelectionRate);
void SetAddSelectionRate(double AddSelectionRate);
double GetSelectionRate();
double GetAddSelectionRate();
void OutputSelectionRate();
void OutputAddSelectionRate();
private:
double *m_pParameterValue;
double *m_pObjectValue;
double *m_pFitnessValue;
int *m_pChromosomeValue;
int m_ChromosomeLength;
int m_ObjectNum;
int m_DimensionNum;
double m_SelectionRate;
double m_AddSelectionRate;
};
#endif // !defined(AFX_INDIVIDUAL_H__615B27E8_AC7A_47B7_B28E_BA6D4CCF0720__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -