Initial code straight from Qwen3.6:35B

This commit is contained in:
anders committed 2026-10-26 17:15:12 +01:00
1 parent 95866dbd68
commit ba76b2522d
3 files changed
+199

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import json
from scheduler import PhotoScheduler
def run_test():
# Indlæs JSON
with open('data.json', 'r', encoding='utf-8') as f:
data = json.load(f)
scheduler = PhotoScheduler(data)
plan = scheduler.solve()
if plan:
print("✅ Fotoplan fundet!")
print(f"{'Klasse':<10} | {'Start':<10} | {'Slut':<10} | {'Varighed (min)':<10}")
print("-" * 45)
# Sorter efter starttid
sorted_plan = sorted(plan.items(), key=lambda x: x[1]['start'])
for cid, times in sorted_plan:
print(f"{cid:<10} | {times['start']:<10} | {times['end']:<10} | {times['duration']:<10}")
else:
print("❌ Det var umuligt at lave en plan, der overholder alle krav.")
if __name__ == "__main__":
run_test()