Timetabler
|
This project generates a timetable given a set of inputs and constraints. It encodes constraints of the timetabling problem as a SAT formula in the Conjunctive Normal Form, and then calls a MaxSAT solver to solve the problem.
For Ubuntu/Debian users: Download the deb for the latest version of Timetabler from here and install it.
To build the project from source follow the steps below.
This project requires following tools to build.
The following software are dependencies for this program:
The most recent stable release can be downloaded from here.
To get the latest code, use
To set up all the dependencies required, simply run the following command
If building with tests, use instead
If the above command fails, you can try installing the individual dependencies manually by following the instructions below.
This describes the process of setting up each dependency.
This needs to be built as a library. The following steps need to be followed:
$OPEN_WBO_PATH
will be used to denote the path where the repository is cloned. This does not require any setup other than cloning the repository. The path where this is cloned will be referred to as $CSVPARSER_PATH
.
$YAML_CPP_PATH
will be used to denote the path where it is unpacked.$PEGTL_PATH
will be used to denote the path where it is unpacked.$GTEST_PATH
will be used to denote the path where it is unpacked.OPEN_WBO_PATH
, YAML_CPP_PATH
, CSVPARSER_PATH
and PEGTL_PATH
appropriately. If building with tests, set GTEST_PATH
appropriately and use
To execute the program, use
where
fields.yml
is the path to the file containing the list of values a field can take and the weights for the constraints. This includes list of instructors, available classrooms, weights of clauses, etc.input.csv
is the path to the file containing the input data. This file contains the course data input given to the solver as a CSV file.custom.txt
is the path to the file containing the list of custom constraints. This file contains the custom constraints that can be provided to the solver using the grammar provided. For the full grammar, please refer to the Project Wiki.output.csv
is the path to the file to which the output must be written to.A detailed explanation on each file can be found in the Project Wiki.
Examples for configuration files can be found [here](examples). This contains some examples for the field information, the input, and custom constraints to be added to the solver.
For further details and examples, please refer to the Project Wiki.
If you have any queries, suggestions, or feature requests, or would like to report any bugs or issues, please open an issue on GitHub.
When reporting bugs, please provide sufficient information (such as the inputs and the configuration used) to reproduce the bug.
To contribute to this project, please send a pull request.
This software is provided under the [MIT License](LICENSE).