This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
AICup/run.py

16 lines
329 B
Python
Raw Normal View History

2019-10-23 19:07:20 +00:00
from code import *
def run():
names = [name_ for name_ in os.listdir("./problems") if "tsp" in name_]
for name in names:
filename = f"problems/{name}"
instance = Instance(filename)
instance.print_info()
print(" --- ")
instance.plot_data()
if __name__ == '__main__':
run()