-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.py
36 lines (29 loc) · 1.22 KB
/
main.py
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
from solver.runner.main_runner import run
if __name__ == "__main__":
# Time limit per test case (in seconds).
time_limit = 0.5
# Search algorithm to be used:
# All search algorithms will use the same set of invented tokens
# - Brute Brute
# - AS AStar
# - MH Metropolis Hasting
# - LNS Large Neighborhood Search
# - MCTS Monte Carlo Tree Search
# - GP Genetic Programming
algorithm = "MH"
# Problem domain:
# - R Robot planning
# - S String transformations
# - P Drawing ASCII pixel art
domain = "S"
# Search heuristic/distance:
# A cost measure used by the search algorithm to guide its search.
# - E Entailment cost = 0 if case solved else 1
# - G Greedy domain specific greedy heuristic
# - O Optimized domain specific optimized heuristic
heuristic = "O"
# Runs all test cases for this number of trials.
# The more trials, the longer it takes to run.
# Note: robots and pixels run way faster than strings
number_of_trials = 1
run(time_limit, algorithm, domain, heuristic, number_of_trials)