-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
154bf9e
commit 43cdfbe
Showing
15 changed files
with
450 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import heuristic_bursts.agent | ||
import heuristic_bursts.team | ||
import heuristic_bursts.options | ||
|
||
options = heuristic_bursts.options.Options() | ||
|
||
for sim_num in range(0, 20): | ||
# Instantiate team | ||
team = heuristic_bursts.team.Team(options) | ||
|
||
# Set team tier preferences | ||
for agent in team.agent_list: | ||
agent.tier_weights = [0.0, 1.0] | ||
agent.tier_weight_change = [1/74., -1/74.] | ||
|
||
# Run team for number of iterations listed in Options | ||
team.run() | ||
|
||
# Perform one last team interaction | ||
team.interact() | ||
|
||
# Take the solution of Agent 1 as the solution for the team | ||
solution = team.agent_list[0].current_results | ||
quality = team.agent_list[0].current_solution_quality | ||
num_rules = len(team.agent_list[0].current_solution.applied_rules) | ||
rules = team.agent_list[0].current_solution.applied_rules | ||
|
||
# Save results to file | ||
file = open("simulation_start0low_100high.txt", "a") | ||
file.write(str(solution[0]) + ', ' + str(solution[1]) + ', ' + str(solution[2]) + ', ,,,' + str(quality) + ', ,,,' + str(num_rules) + ', ,,,'+str(rules) + '\n') | ||
file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import heuristic_bursts.agent | ||
import heuristic_bursts.team | ||
import heuristic_bursts.options | ||
|
||
options = heuristic_bursts.options.Options() | ||
|
||
for sim_num in range(0, 20): | ||
# Instantiate team | ||
team = heuristic_bursts.team.Team(options) | ||
|
||
# Set team tier preferences | ||
for agent in team.agent_list: | ||
agent.tier_weights = [1.0, 0.0] | ||
agent.tier_weight_change = [-1/74., 1/74.] | ||
|
||
# Run team for number of iterations listed in Options | ||
team.run() | ||
|
||
# Perform one last team interaction | ||
team.interact() | ||
|
||
# Take the solution of Agent 1 as the solution for the team | ||
solution = team.agent_list[0].current_results | ||
quality = team.agent_list[0].current_solution_quality | ||
num_rules = len(team.agent_list[0].current_solution.applied_rules) | ||
rules = team.agent_list[0].current_solution.applied_rules | ||
|
||
# Save results to file | ||
file = open("simulation_start100low_0high.txt", "a") | ||
file.write(str(solution[0]) + ', ' + str(solution[1]) + ', ' + str(solution[2]) + ', ,,,' + str(quality) + ', ,,,' + str(num_rules) + ', ,,,'+str(rules) + '\n') | ||
file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import heuristic_bursts.agent | ||
import heuristic_bursts.team | ||
import heuristic_bursts.options | ||
|
||
options = heuristic_bursts.options.Options() | ||
|
||
for sim_num in range(0, 20): | ||
# Instantiate team | ||
team = heuristic_bursts.team.Team(options) | ||
|
||
# Set team tier preferences | ||
for agent in team.agent_list: | ||
agent.tier_weights = [0.25, 0.75] | ||
agent.tier_weight_change = [.5/74., -.5/74.] | ||
|
||
# Run team for number of iterations listed in Options | ||
team.run() | ||
|
||
# Perform one last team interaction | ||
team.interact() | ||
|
||
# Take the solution of Agent 1 as the solution for the team | ||
solution = team.agent_list[0].current_results | ||
quality = team.agent_list[0].current_solution_quality | ||
num_rules = len(team.agent_list[0].current_solution.applied_rules) | ||
rules = team.agent_list[0].current_solution.applied_rules | ||
|
||
# Save results to file | ||
file = open("simulation_start25low_75high.txt", "a") | ||
file.write(str(solution[0]) + ', ' + str(solution[1]) + ', ' + str(solution[2]) + ', ,,,' + str(quality) + ', ,,,' + str(num_rules) + ', ,,,'+str(rules) + '\n') | ||
file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import heuristic_bursts.agent | ||
import heuristic_bursts.team | ||
import heuristic_bursts.options | ||
|
||
options = heuristic_bursts.options.Options() | ||
|
||
for sim_num in range(0, 20): | ||
# Instantiate team | ||
team = heuristic_bursts.team.Team(options) | ||
|
||
# Set team tier preferences | ||
for agent in team.agent_list: | ||
agent.tier_weights = [0.75, 0.25] | ||
agent.tier_weight_change = [-.5 / 74., .5 / 74.] | ||
|
||
# Run team for number of iterations listed in Options | ||
team.run() | ||
|
||
# Perform one last team interaction | ||
team.interact() | ||
|
||
# Take the solution of Agent 1 as the solution for the team | ||
solution = team.agent_list[0].current_results | ||
quality = team.agent_list[0].current_solution_quality | ||
num_rules = len(team.agent_list[0].current_solution.applied_rules) | ||
rules = team.agent_list[0].current_solution.applied_rules | ||
|
||
# Save results to file | ||
file = open("simulation_start75low_25high.txt", "a") | ||
file.write( | ||
str(solution[0]) + ', ' + str(solution[1]) + ', ' + str(solution[2]) + ', ,,,' + str(quality) + ', ,,,' + str( | ||
num_rules) + ', ,,,' + str(rules) + '\n') | ||
file.close() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,63 @@ | ||
11598.7600771, 1429714.04363, 5, ,,,123.264386377, ,,,14, ,,,['H6', 'L3', 'L8', 'H4', 'H6', 'L4', 'H6', 'H6', 'H6', 'L9', 'L8', 'L5', 'L8', 'L8'] | ||
10210.3897525, 2412217.44794, 5, ,,,236.251260375, ,,,14, ,,,['H3', 'H6', 'H6', 'H6', 'H4', 'L8', 'H6', 'L6', 'H6', 'L9', 'L7', 'L9', 'L9', 'L8'] | ||
77073.7397681, 1339695.74357, 5, ,,,17.381999986, ,,,4, ,,,['H3', 'L8', 'L7', 'H6'] | ||
12029.9373856, 2138115.51894, 3, ,,,177.732888411, ,,,13, ,,,['H3', 'L7', 'H4', 'H6', 'L9', 'L3', 'L6', 'H6', 'H6', 'L9', 'L9', 'H4', 'L9'] | ||
11623.8928183, 591510.398817, 5, ,,,50.887461547, ,,,9, ,,,['H6', 'L6', 'H4', 'H3', 'L4', 'L9', 'H4', 'L5', 'L8'] | ||
34174.6637648, 1914152.36865, 7, ,,,56.0108617842, ,,,17, ,,,['L7', 'L2', 'H4', 'L2', 'H4', 'H3', 'H6', 'L3', 'H6', 'H6', 'H6', 'H6', 'H6', 'L5', 'L9', 'L5', 'L9'] | ||
77073.7397681, 1712808.66519, 5, ,,,22.2229863289, ,,,6, ,,,['H3', 'L9', 'L8', 'L9', 'L8', 'L8'] | ||
19260.1180991, 2408782.25524, 9, ,,,125.065809195, ,,,16, ,,,['H4', 'L7', 'L2', 'L9', 'H6', 'L4', 'H6', 'H6', 'L6', 'L6', 'H6', 'L9', 'H6', 'L9', 'H6', 'L9'] | ||
14886.038854, 709247.634696, 9, ,,,47.645155414, ,,,10, ,,,['L3', 'L9', 'L7', 'L8', 'L8', 'L5', 'H2', 'L5', 'H6', 'L6'] | ||
8448.78984305, 1688494.45047, 5, ,,,199.850449808, ,,,14, ,,,['H3', 'H6', 'L9', 'L8', 'L8', 'H6', 'H4', 'H6', 'H4', 'L7', 'H6', 'H6', 'H6', 'L6'] | ||
673330.415745, 39038515.6926, 21, ,,,57.9782448256, ,,,11, ,,,['L1', 'H4', 'H5', 'H6', 'L4', 'H6', 'L4', 'L4', 'H6', 'H2', 'L6'] | ||
17770.4565441, 653473.990271, 3, ,,,36.7730558102, ,,,18, ,,,['L6', 'L5', 'H3', 'L9', 'L6', 'L6', 'L5', 'L7', 'H6', 'H4', 'L3', 'L9', 'H6', 'H6', 'L6', 'H6', 'L8', 'H6'] | ||
12910.1561666, 920214.895493, 7, ,,,71.2783705805, ,,,14, ,,,['H6', 'L7', 'L6', 'H4', 'L6', 'L9', 'L9', 'H6', 'L4', 'H6', 'L9', 'H6', 'L7', 'H6'] | ||
18811.6222374, 3316795.36218, 7, ,,,176.316285768, ,,,11, ,,,['L2', 'H6', 'H4', 'H4', 'L6', 'H4', 'L4', 'H3', 'H6', 'L9', 'L9'] | ||
73504.8905136, 511775.919962, 5, ,,,6.96247442022, ,,,7, ,,,['H3', 'L5', 'H6', 'L6', 'L9', 'L9', 'L9'] | ||
14207.6852243, 112915429.499, 5, ,,,7947.48952531, ,,,12, ,,,['L4', 'L6', 'H4', 'L2', 'H3', 'H6', 'L7', 'H6', 'L8', 'L8', 'H6', 'H3'] | ||
7631.97575312, 866202.796336, 3, ,,,113.496534103, ,,,12, ,,,['H3', 'L9', 'L5', 'H6', 'H6', 'L8', 'L3', 'L9', 'L8', 'H6', 'L6', 'L7'] | ||
77073.7397681, 2080846.3213, 5, ,,,26.9981231943, ,,,10, ,,,['L9', 'H3', 'L8', 'L9', 'H6', 'L5', 'L8', 'H6', 'L9', 'L9'] | ||
14551.4382924, 672540.126532, 5, ,,,46.2181203684, ,,,15, ,,,['H3', 'H6', 'L9', 'L6', 'H6', 'L9', 'H4', 'H6', 'H5', 'L3', 'H6', 'L8', 'H4', 'H6', 'H6'] | ||
28115.1598545, 1045300.55172, 19, ,,,37.1792498115, ,,,17, ,,,['L6', 'H5', 'L8', 'L7', 'L4', 'L8', 'L4', 'H4', 'L8', 'H4', 'L6', 'L9', 'L4', 'L5', 'H5', 'H3', 'L8'] | ||
459624.899645, 815571957.725, 11, ,,,1774.42944965, ,,,14, ,,,['L1', 'H3', 'L1', 'H2', 'H4', 'H6', 'L3', 'H6', 'L5', 'L8', 'H6', 'L2', 'L3', 'L9'] | ||
57537.6681916, 328453.753109, 5, ,,,5.70849955225, ,,,10, ,,,['H3', 'L8', 'H6', 'H4', 'L8', 'L6', 'H6', 'H4', 'H4', 'H6'] | ||
79620.5242126, 1227019.27859, 5, ,,,15.4108414975, ,,,10, ,,,['H3', 'L4', 'L7', 'L4', 'L9', 'L5', 'L6', 'L8', 'L6', 'L4'] | ||
7221.88146346, 1983764.69668, 3, ,,,274.688072176, ,,,19, ,,,['H4', 'L3', 'L7', 'L7', 'H6', 'L6', 'L9', 'L9', 'L9', 'L9', 'L8', 'H6', 'L3', 'H6', 'L8', 'H6', 'H6', 'H6', 'H6'] | ||
188663.211355, 13148239396.7, 19, ,,,69691.5911814, ,,,20, ,,,['H3', 'H2', 'H6', 'L2', 'L4', 'H6', 'L2', 'H4', 'H3', 'L8', 'L8', 'L9', 'H4', 'L6', 'H2', 'H5', 'H4', 'H4', 'L9', 'L7'] | ||
17437.9051388, 2835254.73466, 11, ,,,162.591475989, ,,,17, ,,,['L5', 'H6', 'L4', 'H2', 'L9', 'H6', 'L5', 'L5', 'H3', 'L2', 'H6', 'H6', 'L6', 'H3', 'H6', 'L9', 'H6'] | ||
78129.528528, 1078831.11422, 7, ,,,13.8082378653, ,,,10, ,,,['L8', 'L6', 'L3', 'H6', 'H6', 'L7', 'L9', 'L9', 'L2', 'L6'] | ||
224946.947743, 941788.589273, 19, ,,,4.18671423962, ,,,12, ,,,['L7', 'L9', 'H2', 'H2', 'L2', 'H6', 'L6', 'L9', 'H4', 'H5', 'L8', 'H6'] | ||
18958.4644669, 2179833.87729, 5, ,,,114.979453167, ,,,13, ,,,['H3', 'L1', 'H4', 'L6', 'H3', 'L9', 'L4', 'L8', 'L5', 'H6', 'H6', 'H6', 'L9'] | ||
20253.3074838, 1733838.95999, 9, ,,,85.6076945152, ,,,17, ,,,['L5', 'H2', 'H4', 'H3', 'H6', 'L5', 'L4', 'L9', 'L8', 'H4', 'H4', 'H6', 'H5', 'L6', 'L6', 'H6', 'H6'] | ||
19958.2532905, 3952983.01385, 7, ,,,198.062573728, ,,,15, ,,,['H4', 'H3', 'H6', 'H6', 'L5', 'L9', 'L2', 'H6', 'L8', 'L6', 'L6', 'L8', 'H6', 'H6', 'H6'] | ||
142640.872844, 36416.1138456, 17, ,,,0.255299291989, ,,,19, ,,,['H6', 'H3', 'H6', 'L5', 'L7', 'L9', 'L9', 'L6', 'L4', 'L5', 'H5', 'L6', 'L4', 'L6', 'H5', 'H2', 'L9', 'H3', 'L2'] | ||
119784.990419, 3935664.81565, 7, ,,,32.8560765577, ,,,16, ,,,['L5', 'L6', 'L6', 'L8', 'L8', 'L8', 'H4', 'L2', 'H6', 'L5', 'L4', 'L3', 'L9', 'L6', 'L9', 'H6'] | ||
90265.1449016, 1870533.71183, 7, ,,,20.7226578306, ,,,16, ,,,['H3', 'L2', 'L6', 'L9', 'L4', 'H6', 'H6', 'H4', 'L8', 'L9', 'L3', 'L9', 'L9', 'H6', 'L5', 'L1'] | ||
24063.091762, 2751244.10592, 5, ,,,114.334605591, ,,,15, ,,,['L6', 'L9', 'L4', 'L3', 'H4', 'L7', 'H6', 'H5', 'H3', 'L4', 'L8', 'L9', 'H3', 'L8', 'H6'] | ||
755888.383543, 26193900611.2, 27, ,,,34653.1328983, ,,,14, ,,,['H3', 'L2', 'L9', 'L8', 'L9', 'H6', 'L4', 'L9', 'H5', 'H2', 'H5', 'H3', 'H3', 'H5'] | ||
397150.806453, 110510.331317, 19, ,,,0.2782578545, ,,,17, ,,,['L3', 'L2', 'L5', 'H4', 'L9', 'H6', 'L6', 'L8', 'L9', 'L9', 'L5', 'L6', 'L1', 'H5', 'L6', 'L3', 'L8'] | ||
32181.0802762, 692849.241433, 5, ,,,21.5297073773, ,,,11, ,,,['H3', 'L6', 'L5', 'L9', 'L7', 'H4', 'H4', 'H6', 'L6', 'L5', 'L4'] | ||
20999.3100753, 1038033.17074, 7, ,,,49.4317749975, ,,,11, ,,,['H2', 'L9', 'L3', 'L6', 'L9', 'L7', 'H4', 'H6', 'H6', 'H4', 'L6'] | ||
79922.1171073, 1657189.4038, 5, ,,,20.7350538722, ,,,8, ,,,['L2', 'L5', 'H6', 'H3', 'L9', 'H3', 'L7', 'H6'] | ||
249645.194141, 1e-40, 9, ,,,4.00568496198e-46, ,,,9, ,,,['L5', 'L7', 'H6', 'H4', 'L6', 'H6', 'L2', 'L5', 'L6'] | ||
31116.612343, 1912538.7952, 7, ,,,61.4635929552, ,,,18, ,,,['L5', 'H6', 'L8', 'L4', 'L4', 'L3', 'H6', 'H6', 'H6', 'L7', 'H6', 'H4', 'L9', 'L9', 'L9', 'L1', 'L9', 'H6'] | ||
15773.8157414, 1885222.11421, 7, ,,,119.515920885, ,,,16, ,,,['L3', 'L2', 'L9', 'L4', 'H6', 'H4', 'L9', 'H6', 'H6', 'H6', 'L9', 'H6', 'L1', 'H6', 'H6', 'H3'] | ||
8578.4546816, 1352725.67269, 5, ,,,157.688735663, ,,,17, ,,,['L1', 'L6', 'H3', 'H6', 'L9', 'H6', 'L5', 'H6', 'H6', 'L6', 'L7', 'H3', 'H6', 'L9', 'H6', 'H6', 'L6'] | ||
26658.6883582, 1831097.84565, 15, ,,,68.6867193559, ,,,24, ,,,['L6', 'H2', 'H4', 'L4', 'L2', 'H6', 'L5', 'L2', 'L1', 'L9', 'H3', 'H6', 'H6', 'L8', 'H6', 'L4', 'L6', 'L4', 'L7', 'L5', 'H6', 'L7', 'H6', 'H6'] | ||
13178.9392939, 2578989.50602, 5, ,,,195.690218196, ,,,16, ,,,['L3', 'L8', 'H6', 'H4', 'H6', 'L5', 'L6', 'H6', 'L4', 'L7', 'H6', 'L9', 'H6', 'H6', 'L8', 'L9'] | ||
45500.1304137, 5088476.43714, 13, ,,,111.834326427, ,,,18, ,,,['L2', 'L1', 'L7', 'H4', 'L9', 'H2', 'L9', 'L4', 'H6', 'L9', 'L6', 'H4', 'L8', 'H6', 'L8', 'L6', 'H6', 'L6'] | ||
10389.0374659, 2852614.91162, 5, ,,,274.57932662, ,,,15, ,,,['L2', 'L9', 'L8', 'L8', 'H4', 'L1', 'H3', 'H6', 'H6', 'L6', 'L9', 'L5', 'L9', 'H6', 'L9'] | ||
115355.642181, 85418.9405098, 19, ,,,0.740483420617, ,,,18, ,,,['L3', 'L4', 'H2', 'L5', 'L5', 'H2', 'L5', 'H3', 'H2', 'L6', 'H6', 'H4', 'L9', 'H5', 'L4', 'L9', 'H6', 'L9'] | ||
52607.9670373, 517724.067585, 15, ,,,9.84117229274, ,,,14, ,,,['L2', 'L1', 'H4', 'H5', 'L8', 'L9', 'H6', 'L3', 'H2', 'H3', 'H5', 'L9', 'L3', 'H6'] | ||
124082.855045, 127580050.79, 25, ,,,1028.1843591, ,,,16, ,,,['L5', 'L4', 'H6', 'H4', 'L7', 'H5', 'L6', 'L8', 'H4', 'H6', 'L4', 'H6', 'H6', 'H6', 'L9', 'H5'] | ||
91967.2681789, 10764.7020189, 7, ,,,0.117049274508, ,,,13, ,,,['H3', 'H6', 'L8', 'L6', 'L6', 'L6', 'H2', 'L9', 'L5', 'L8', 'L1', 'H3', 'L9'] | ||
77073.7397681, 1339695.74357, 5, ,,,17.381999986, ,,,8, ,,,['L2', 'L7', 'L8', 'L3', 'L3', 'H6', 'L5', 'H6'] | ||
48581.2327479, 2869046.45549, 7, ,,,59.056682863, ,,,15, ,,,['H4', 'H6', 'H2', 'H6', 'H3', 'H3', 'L8', 'L9', 'H6', 'L9', 'L7', 'H6', 'L9', 'H4', 'H6'] | ||
10400.7660785, 762743.142665, 5, ,,,73.3352848155, ,,,8, ,,,['L7', 'L6', 'H6', 'H4', 'H3', 'L8', 'H6', 'L9'] | ||
35716.1720705, 3201656.88441, 5, ,,,89.6416580728, ,,,14, ,,,['H6', 'H3', 'L6', 'H6', 'L4', 'H4', 'L9', 'H6', 'L9', 'L5', 'L9', 'L8', 'L6', 'L9'] | ||
93862.4109089, 767002.357753, 5, ,,,8.17156037572, ,,,8, ,,,['L6', 'H3', 'L8', 'L5', 'H4', 'H6', 'L9', 'L9'] | ||
448362.926176, 1643791.32736, 21, ,,,3.66620706441, ,,,18, ,,,['L5', 'L6', 'H6', 'L3', 'H6', 'L9', 'H6', 'H5', 'L4', 'L7', 'H3', 'H5', 'L8', 'L7', 'H6', 'H2', 'L8', 'H5'] | ||
92991.1425463, 1902598.10779, 5, ,,,20.4599928089, ,,,12, ,,,['H3', 'L6', 'L4', 'L8', 'H6', 'L9', 'H6', 'H6', 'H6', 'H6', 'L5', 'L5'] | ||
8658.22935329, 2005469.45197, 5, ,,,231.62581749, ,,,13, ,,,['H2', 'L8', 'L4', 'H4', 'H6', 'H6', 'L9', 'H3', 'L4', 'H4', 'H6', 'L5', 'L6'] | ||
7915.13797096, 1854847.07418, 3, ,,,234.341723542, ,,,16, ,,,['H5', 'L2', 'H3', 'H3', 'H3', 'H6', 'L9', 'H6', 'L6', 'L5', 'L5', 'L9', 'H4', 'H6', 'H6', 'L8'] | ||
9069.35911189, 2082159.91015, 5, ,,,229.581813275, ,,,13, ,,,['L9', 'L7', 'L8', 'L9', 'L3', 'L7', 'H4', 'L9', 'H4', 'H6', 'L4', 'H6', 'H6'] | ||
104886.020769, 1272687.02765, 19, ,,,12.1340004923, ,,,18, ,,,['L1', 'L9', 'H5', 'L5', 'H4', 'L6', 'L4', 'L9', 'H6', 'L4', 'L9', 'L4', 'L2', 'H6', 'H2', 'L4', 'H3', 'L5'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.