-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEA Solution Draft.txt
63 lines (44 loc) · 1.26 KB
/
EA Solution Draft.txt
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# First Step
#Populate numbered black squares
# Pre-processing
# 1. [] list of white squares
# 2. [] list of numbered squares
# 3. [] list of lights?
# Initial Population
# Set each numbered space w/ appropriate amt of lights
# Fitness
# Check whether their are conflicts w/ lights
# Loop while not fitness
#Selection
#Get first fittest
#Get second fittest
#Crossover
#Find Crossover point
#Swap values between first- and second- fittest
#Mutation
#Pick random numbered space to mutate
#Pick new configuration for lights
#Fitness
# Check whether their are conflicts w/ lights
# Send fit population to second step
# Second Step
#Populate white squares not besides numbered black squares
# Pre-processing
#Filter out white spaces besides numbered spaces
# Initial Population
#Place lights in available white spaces
# Fitness
#Verify Solution
#Verify white spaces are yellow
#Verify light spaces (found in this step) have no conflicts
# Loop
#Selection
#Get first fittest
#Get second fittest
#Crossover
#Find Crossover point
#Swap values between first- and second- fittest
#Mutation
#Pick random numbered space to mutate
#Pick new configuration for lights
#Fitness