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

📄 china45dlg.h

📁 遗传算法解中国旅行商问题
💻 H
字号:
// China45Dlg.h : header file
//
#include "PopNode.h"	// Added by ClassView
#include "China45Recordset.h"
#define SLEEPTIME 500

#if !defined(AFX_CHINA45DLG_H__B5BE4A7F_5027_4224_99FB_713B9F575983__INCLUDED_)
#define AFX_CHINA45DLG_H__B5BE4A7F_5027_4224_99FB_713B9F575983__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CChina45Dlg dialog

class CChina45Dlg : public CDialog
{
// Construction
public:
	void ExecGA(int k, PopNode *pop);
	
	CChina45Recordset m_recordset;
	
	PopNode m_pop;
	BOOL m_bIsGA;
	CPoint m_point[MAXCHROM];

	void DrawNetwork();
	int RandomInt(int low, int high);
	
	CChina45Dlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CChina45Dlg)
	enum { IDD = IDD_CHINA45_DIALOG };
	int		m_GALen;
	int		m_nGroupSize;
	double	m_GACrossProb;
	double	m_GAVariProb;
	int		m_GANum;
	int		m_CurGANum;
	double	m_MiniCost;
	int		m_CrossNum;
	int		m_VariNum;
	double	m_GAFitness;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChina45Dlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CChina45Dlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMenuGaset();
	afx_msg void OnMenuSoft();
	afx_msg void OnMenuExit();
	afx_msg void OnButtonGa();
	afx_msg void OnMenuResult();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CHINA45DLG_H__B5BE4A7F_5027_4224_99FB_713B9F575983__INCLUDED_)

⌨️ 快捷键说明

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