sgaparams.cpp

来自「vc编程实现bp神经网络」· C++ 代码 · 共 34 行

CPP
34
字号
// SGAParams.cpp: implementation of the CSGAParams class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
//#include "sga.h"
#include "SGAParams.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

extern double cro,muta;
extern int geno,popsize;

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSGAParams::CSGAParams()
{
	blCrossover=cro;   //取得参数值	
	blMutation=muta;	
	MaxGeneration=geno;	
	PopSize=popsize;
}

CSGAParams::~CSGAParams()
{
   
}

⌨️ 快捷键说明

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