Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
69594217cf |
19
.drone.yml
19
.drone.yml
@ -1,24 +1,11 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: run_algo
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: algo
|
- name: run_tournament
|
||||||
image: "python:3.8"
|
|
||||||
commands:
|
|
||||||
- pip3 install -r requirements.txt
|
|
||||||
- python3 destroy_p3.py -g GBA1000.txt
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: check_result
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: result
|
|
||||||
image: "python:3.8"
|
image: "python:3.8"
|
||||||
commands:
|
commands:
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
- python3 destroy_p3.py -g GBA1000.txt > gba1000d.txt
|
- python3 destroy_p3.py -g GBA1000.txt > gba1000d.txt
|
||||||
- python3 analyse_p3.py -g GBA1000.txt -d gba1000d.txt
|
- python3 analyse_p3.py -g GBA1000.txt -d gba1000d.txt
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import numpy as np
|
import numpy as np
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
import argparse
|
import argparse
|
||||||
|
import time
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description='')
|
parser = argparse.ArgumentParser(description='')
|
||||||
parser.add_argument('-g', '--graph', dest='graph', action='store', default=None)
|
parser.add_argument('-g', '--graph', dest='graph', action='store', default=None)
|
||||||
@ -63,5 +64,16 @@ def remove_highest_kebab() -> list:
|
|||||||
return del_list
|
return del_list
|
||||||
|
|
||||||
|
|
||||||
for kebab in remove_highest_kebab():
|
print(len(remove_highest_kebab()))
|
||||||
print(kebab)
|
|
||||||
|
# target_runtime = 600
|
||||||
|
# start_time = time.time()
|
||||||
|
# results = []
|
||||||
|
# while (time.time() - start_time) < target_runtime:
|
||||||
|
# for _ in range(50):
|
||||||
|
# results.append(run_random_once())
|
||||||
|
#
|
||||||
|
# print("Total runs: ", len(results))
|
||||||
|
# print("Min: ", min(results))
|
||||||
|
# print("Max: ", max(results))
|
||||||
|
# print("Runtime: ", time.time() - start_time)
|
||||||
|
Reference in New Issue
Block a user