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

📄 stdafx.h

📁 一个有关生产排序的模拟退火算法
💻 H
字号:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_)
#define AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_

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

#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#include <afxdisp.h>        // MFC Automation classes
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include "sacode.h"

extern std::vector<SYCity> vecCitys;  //容器类储存坐标信息
extern std::vector<SYCityDistance> vecCityDistances;//容器类储存城市之间距离信息
extern std::vector<Hardpanish> vecHardpanish;
extern std::vector<WidethpanishP> vecWidethpanishP;
extern std::vector<WidethpanishN> vecWidethpanishN;
extern std::vector<Gaugepanish> vecGaugepanish;
extern std::vector<int> vecCityRouter;  //容器类储路径信息

extern int CityNumber;
extern double InitialTemperature;
extern double NowTemperature;
extern int	NowExternalIterNumber;
extern int NowInnerIterNumber;

void InitialSA();
void ClearSA();
void CreateCityRouter( CityRouterDef &CityRouter );
void CreateCityRouter2opt( CityRouterDef &preCityRouter, CityRouterDef &CityRouter );
double CountTotalDistance( CityRouterDef &CityRouter );
double CountCityDistance( SYCity &FromCity, SYCity &ToCity, SYCityDistance &CityDistance );
double FindCityDistance( int FromCityIndex, int ToCityIndex );
double CountInitialTemperatureMaxMin( double maxdis, double mindis, int rate );
double CountDownTemperature( double nowtemp, int DownMode );

BOOL JudgeOverInnerLoop( int JudgeMode );
BOOL JudgeOverExternalLoop( int JudgeMode );
CString FormRouterString( SYRouter &CityRouter );
UINT SACompution(LPVOID pParam);
void GetRouterFileString( SYRouter &CityRouter, CString &strTemp );


#define WYWM_INFOVIEWAPPENDINFO		(WM_USER + 1000)
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__69AA200C_645B_4F90_991F_E9C63EF9FC6F__INCLUDED_)

⌨️ 快捷键说明

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