📄 frmmmas.frm
字号:
Left = 960
List = "frmMMAS.frx":01C9
TabIndex = 91
Top = 960
Width = 735
End
Begin VB.CommandButton cmdShowAntMove
Caption = "显示第 只蚂蚁的运动图"
Enabled = 0 'False
Height = 495
Left = 240
TabIndex = 90
Top = 840
Width = 2895
End
Begin VB.PictureBox picMovOfAnt
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5295
Left = 3360
ScaleHeight = 5265
ScaleWidth = 5265
TabIndex = 89
Top = 840
Width = 5295
End
Begin VB.PictureBox picTao
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 4095
Left = -74760
ScaleHeight = 4065
ScaleWidth = 4065
TabIndex = 82
Top = 720
Width = 4095
End
Begin VB.PictureBox picCityMap
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 4095
Left = -70440
ScaleHeight = 4065
ScaleWidth = 4065
TabIndex = 78
Top = 720
Width = 4095
End
Begin VB.TextBox txtBestPathAid
BackColor = &H8000000F&
Height = 495
Left = -74880
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 1 'Horizontal
TabIndex = 77
Top = 5760
Width = 8535
End
Begin VB.TextBox txtAvgLenNX
Alignment = 2 'Center
Height = 270
Left = -70200
TabIndex = 72
Text = "10"
Top = 6000
Width = 615
End
Begin VB.TextBox txtAvgLenNY
Alignment = 2 'Center
Height = 270
Left = -74760
TabIndex = 71
Text = "10"
Top = 2880
Width = 615
End
Begin VB.ListBox lstBestPath
Height = 4920
ItemData = "frmMMAS.frx":01EC
Left = -71880
List = "frmMMAS.frx":01EE
TabIndex = 64
Top = 720
Width = 5535
End
Begin VB.TextBox txtBestLenNX
Alignment = 2 'Center
Height = 270
Left = -70800
TabIndex = 18
Text = "10"
Top = 6000
Width = 735
End
Begin VB.TextBox txtBestLenNY
Alignment = 2 'Center
Height = 270
Left = -74760
TabIndex = 17
Text = "10"
Top = 2880
Width = 615
End
Begin VB.TextBox txtAvgLenXMax
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -67200
TabIndex = 16
Text = "1000"
Top = 6000
Width = 855
End
Begin VB.TextBox txtAvgLenXMin
Appearance = 0 'Flat
Height = 270
Left = -73920
Locked = -1 'True
TabIndex = 15
Text = "0"
Top = 6000
Width = 735
End
Begin VB.TextBox txtAvgLenYMin
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -74760
TabIndex = 14
Text = "0"
Top = 5640
Width = 735
End
Begin VB.TextBox txtAvgLenYMax
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -74760
TabIndex = 13
Text = "250000"
Top = 480
Width = 735
End
Begin VB.PictureBox AxisAvgLenX
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 135
Left = -73920
ScaleHeight = 105
ScaleWidth = 7545
TabIndex = 12
Top = 5880
Width = 7575
End
Begin VB.PictureBox AxisAvgLenY
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5415
Left = -74040
ScaleHeight = 5385
ScaleWidth = 105
TabIndex = 11
Top = 480
Width = 135
End
Begin VB.PictureBox picAvgLen
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5415
Left = -73920
ScaleHeight = 5385
ScaleWidth = 7545
TabIndex = 10
Top = 480
Width = 7575
End
Begin VB.TextBox txtBestLenXMax
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -67200
TabIndex = 9
Text = "1000"
Top = 6000
Width = 855
End
Begin VB.TextBox txtBestLenXMin
Appearance = 0 'Flat
Height = 270
Left = -73920
Locked = -1 'True
TabIndex = 8
Text = "0"
Top = 6000
Width = 735
End
Begin VB.TextBox txtBestLenYMin
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -74760
TabIndex = 7
Text = "0"
Top = 5640
Width = 735
End
Begin VB.TextBox txtBestLenYMax
Alignment = 1 'Right Justify
Appearance = 0 'Flat
Height = 270
Left = -74760
TabIndex = 6
Text = "250000"
Top = 480
Width = 735
End
Begin VB.PictureBox AxisBestLenX
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 135
Left = -73920
ScaleHeight = 105
ScaleWidth = 7545
TabIndex = 5
Top = 5880
Width = 7575
End
Begin VB.PictureBox AxisBestLenY
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5415
Left = -74040
ScaleHeight = 5385
ScaleWidth = 105
TabIndex = 4
Top = 480
Width = 135
End
Begin VB.PictureBox picBestLen
Appearance = 0 'Flat
AutoRedraw = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5415
Left = -73920
ScaleHeight = 5385
ScaleWidth = 7545
TabIndex = 3
Top = 480
Width = 7575
End
Begin VB.TextBox txtErrRep
Height = 270
Left = -68280
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 2
Top = 360
Width = 1935
End
Begin VB.ListBox lstBestLenRep
Height = 4920
ItemData = "frmMMAS.frx":01F0
Left = -74880
List = "frmMMAS.frx":01F2
TabIndex = 1
Top = 720
Width = 2895
End
Begin VB.Label Label27
Caption = "蚂蚁这样移动的概率:"
Height = 255
Left = 240
TabIndex = 96
Top = 2640
Width = 1815
End
Begin VB.Label Label26
Caption = "该页在暂停时有效!"
Height = 255
Left = 240
TabIndex = 92
Top = 480
Width = 1935
End
Begin VB.Label Label25
Alignment = 2 'Center
Caption = "各路径信息量浓度图"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -74760
TabIndex = 87
Top = 480
Width = 4095
End
Begin VB.Label Label24
Alignment = 2 'Center
Caption = "当前最短路径示意图"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = -70440
TabIndex = 86
Top = 480
Width = 4095
End
Begin VB.Label Label23
Alignment = 2 'Center
Caption = "(颜色越浓表示信息浓度量越大)"
Height = 255
Left = -74760
TabIndex = 85
Top = 4920
Width = 4095
End
Begin VB.Label Label18
Caption = "最优路径:"
Height = 255
Left = -71880
TabIndex = 63
Top = 480
Width = 975
End
Begin VB.Label Label17
Caption = "最优路径长度:"
Height = 255
Left = -74880
TabIndex = 62
Top = 480
Width = 1335
End
End
End
Attribute VB_Name = "frmMMAS"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Sign_Stop_Calc As Boolean
Dim BestAntOfIter As Integer, BestLenOfIter As Double
Dim WorstAntOfIter As Integer, WorstLenOfIter As Double
Dim GlobalBestLen As Double
Dim Iteration As Integer
Dim S_BestLen As Double
Dim strBestPath As String
Dim AvgLenOfIter As Double
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -