Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
9df6c6b147
|
|||
61e414a3ce
|
|||
dd43985224
|
|||
23cb722cd9
|
|||
602f7d4f1b
|
|||
ca44105fae
|
|||
0c4842a6f5
|
17
.drone.yml
17
.drone.yml
@ -1,9 +1,22 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: run_algo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: run_tournament
|
- name: algo
|
||||||
|
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
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
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)
|
||||||
@ -64,16 +63,5 @@ def remove_highest_kebab() -> list:
|
|||||||
return del_list
|
return del_list
|
||||||
|
|
||||||
|
|
||||||
print(len(remove_highest_kebab()))
|
for kebab in 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