📄 jspsolutionview.h
字号:
// JSPSolutionView.h : interface of the CJSPSolutionView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_JSPSOLUTIONVIEW_H__B2604C92_6897_434A_A215_6DC7568AC940__INCLUDED_)
#define AFX_JSPSOLUTIONVIEW_H__B2604C92_6897_434A_A215_6DC7568AC940__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "nn/Gantt.h"
#include "nn/hnn.h"
#include "nn/rnn.h"
#include "nn/tcnn.h"
#include <fstream>
using namespace std;
class CJSPSolutionView : public CScrollView
{
protected: // create from serialization only
CJSPSolutionView();
DECLARE_DYNCREATE(CJSPSolutionView)
// Attributes
public:
CJSPSolutionDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CJSPSolutionView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CJSPSolutionView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CJSPSolutionView)
afx_msg void OnSetProblem();
afx_msg void OnSetNN();
afx_msg void OnRunMore();
afx_msg void OnRun();
afx_msg void OndirectDraw();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
CString fileAddr; //调度问题的相关数据文件
int nntype;
bool selnn, selpro; //是否已经设定了调度问题以及所要使用的神经网络类型
int runtime;
GanttHis *his;
//作业调度问题基本数据
int n; //作业总数
int m; //机器总数
int **machine; //作业的机器分配
int **protime; //作业的加工时间分配
HNN *hnet; //hopfield神经网络对象
RNN *rnet; //随机神经网络对象
TCNN *tcnet; //暂态混沌神经网络对象
int mincost; //预估的最佳调度的最大成本
//神经运动方程的相关参数
double A, B, C, D1, D2, D3;
double c, R;
double u0;
double dt;//时间步长
//模拟退火的相关参数
double Tmax; //初始温度
double Tmin; //凝结温度
double r; //温度下降速率
int k; //每个温度上的循环次数
//暂态混沌的相关参数
double ktc; //神经薄膜的衰减因子
double a; //M项比例参数
double b; //自反馈连接权的衰减因子
double I0; //自反馈连接项参数
double z0; //初始自反馈连接权
};
#ifndef _DEBUG // debug version in JSPSolutionView.cpp
inline CJSPSolutionDoc* CJSPSolutionView::GetDocument()
{ return (CJSPSolutionDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_JSPSOLUTIONVIEW_H__B2604C92_6897_434A_A215_6DC7568AC940__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -