Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
69594217cf |
17
.drone.yml
17
.drone.yml
@ -1,22 +1,9 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: run_algo
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- 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
|
||||
- name: run_tournament
|
||||
image: "python:3.8"
|
||||
commands:
|
||||
- pip3 install -r requirements.txt
|
||||
|
@ -1,6 +1,7 @@
|
||||
import numpy as np
|
||||
import networkx as nx
|
||||
import argparse
|
||||
import time
|
||||
|
||||
parser = argparse.ArgumentParser(description='')
|
||||
parser.add_argument('-g', '--graph', dest='graph', action='store', default=None)
|
||||
@ -63,5 +64,16 @@ def remove_highest_kebab() -> list:
|
||||
return del_list
|
||||
|
||||
|
||||
for kebab in remove_highest_kebab():
|
||||
print(kebab)
|
||||
print(len(remove_highest_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