Skip to content

Commit d2d17dc

Browse files
committed
add clsUtli.DebugValue()
1 parent fd0a14b commit d2d17dc

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

LibOptimization/Optimization/clsOptRealGAPCX.vb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Namespace Optimization
149149
Dim selectParents As List(Of clsPoint) = Nothing
150150
Me.SelectParentsForG3(3, selectParentsIndex, selectParents)
151151

152-
'PCS Crossover
152+
'PCX Crossover
153153
Dim newPopulation As List(Of clsPoint) = Me.CrossoverPCX(selectParents, Me.ChildrenSize, 3)
154154

155155
'Replace(by G3)

LibOptimization/Util/clsUtil.vb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,20 @@ Namespace Util
119119
End If
120120
End Sub
121121

122+
''' <summary>
123+
''' For Debug
124+
''' </summary>
125+
''' <param name="ai_results"></param>
126+
''' <remarks></remarks>
127+
Public Shared Sub DebugValue(ByVal ai_results As List(Of clsPoint))
128+
If ai_results Is Nothing OrElse ai_results.Count = 0 Then
129+
Return
130+
End If
131+
For i As Integer = 0 To ai_results.Count - 1
132+
Console.WriteLine("Eval :" & String.Format("{0}", ai_results(i).Eval))
133+
Next
134+
End Sub
135+
122136
''' <summary>
123137
''' Check Criterion
124138
''' </summary>
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)