axelahmer / lzcup-scheduler

This repository contains an Answer Set Programming (ASP) implementation using Clingo for scheduling the LZV Cup, an amateur indoor football league in Belgium.
0 stars 0 forks source link

LZV Cup Scheduling in Clingo!

This repository contains an Answer Set Programming (ASP) implementation using Clingo for scheduling the LZV Cup, an amateur indoor football league in Belgium.

Overview

The LZV Cup is a time-relaxed double round-robin tournament where each team plays against every other team twice, once at home and once away. The main goal is to generate a schedule that balances the rest days between matches for each team to avoid close succession of games.

Repository Structure

Input Instance Format

The input instances are located in the data/instances/ directory. Each instance file has the following format:

Output Schedule Format

The generated schedules are saved in the results CSV file. Each schedule is represented in the following format within the CSV:

Interpreting the Console Output

The console output displays the generated schedule matrix with additional formatting to highlight close games:

Usage

solver.py

The solver.py script solves a single instance of the scheduling problem.

Command:

python solver.py <instance_number> <rmax> <m> [--threads <num_threads>] [--output_dir <output_directory>] [--configuration <clingo_configuration>] [--calendar_path <path_to_calendar>] [--timeout <timeout>] [--name <run_name>] [--heuristic] [--render]

Parameters:

run_batch.py

The run_batch.py script runs a batch of instances.

Command:

python run_batch.py <instance_lower> <instance_upper> [--rmax <rmax>] [--m <m>] [--threads <num_threads>] [--output_dir <output_directory>] [--configuration <clingo_configuration>] [--timeout <timeout>] [--name <run_name>] [--heuristic] [--render] [--calendar <path_to_calendar>]

Parameters:

References

Van Bulck, D., Goossens, D.R. & Spieksma, F.C.R. (2019). Scheduling a non-professional indoor football league: a tabu search based approach. Annals of Operations Research, 275:715-730.