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

📄 acsdoc.h

📁 蚁群算法是解决电力调配系统和商场供货系统问题的有效算法,这里提供了一种蚁群算法,供大家参考
💻 H
字号:
// acsDoc.h : interface of the CAcsDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ACSDOC_H__B341C6EB_5681_11D5_8DEC_52544C29CB85__INCLUDED_)
#define AFX_ACSDOC_H__B341C6EB_5681_11D5_8DEC_52544C29CB85__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CAcsDoc : public CDocument
{
protected: // create from serialization only
	CAcsDoc();
	DECLARE_DYNCREATE(CAcsDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAcsDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	double  m_BValue;//信息素与距离相对参数β
	double  m_T0Value;//初始状态下信息素水平τ0
	double	m_Q0Value;//蚂蚁寻路随机变量q0
	double	m_AValue;//信息素腐化参数α
	double	m_PValue;//局部更新规则的参数ρ
	int m_AntNumber;//蚂蚁数目
	int m_CityNumber;//城市数目
	int pos;
	CArray <int,int> bestorder;//最优路径的顺序
	virtual ~CAcsDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CAcsDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ACSDOC_H__B341C6EB_5681_11D5_8DEC_52544C29CB85__INCLUDED_)

⌨️ 快捷键说明

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