-
-
Notifications
You must be signed in to change notification settings - Fork 264
/
Copy pathGAStatus.cs
48 lines (47 loc) · 1.42 KB
/
GAStatus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AIProgrammer.Types
{
public class GAStatus
{
/// <summary>
/// Best fitness so far.
/// </summary>
public double Fitness = 0;
/// <summary>
/// Best true fitness so far, used to determine when a solution is found.
/// </summary>
public double TrueFitness = 0;
/// <summary>
/// Best program so far.
/// </summary>
public string Program = "";
/// <summary>
/// Best program output so far.
/// </summary>
public string Output = "";
/// <summary>
/// Current iteration (generation) count.
/// </summary>
public int Iteration = 0;
/// <summary>
/// Count of status prompts.
/// </summary>
public int StatusCount = 0;
/// <summary>
/// Number of instructions executed by the best program.
/// </summary>
public int Ticks = 0;
/// <summary>
/// Number of instructions executed by the best program, including function calls.
/// </summary>
public int TotalTicks = 0;
/// <summary>
/// Time of last improved evolution.
/// </summary>
public DateTime LastChangeDate = DateTime.Now;
}
}