This directory contains utility scripts for working with Latin squares and balanced scheduling (LABS) problem instances and solutions.
Converts solution files from various formats to the standardized .sol format used in the solutions directory.
Usage:
python convert_to_sol.py <input_directory> <output_directory> <file_extension>input_directory: Directory containing the solution files to convertoutput_directory: Directory where converted.solfiles will be savedfile_extension: Extension of the input files (e.g.,.txt,.dat)
Requirements:
- Input solution files must contain the sequence length information
- Files will be converted to the format specified in ../solutions/
Example:
python convert_to_sol.py ./raw_solutions ./formatted_solutions .txt