{"id":18731299,"url":"https://github.com/aathish04/minizincclasstimetable","last_synced_at":"2026-04-18T10:32:46.963Z","repository":{"id":85420847,"uuid":"508295972","full_name":"Aathish04/MiniZincClassTimetable","owner":"Aathish04","description":"A MiniZinc Model describing a class timetabling problem for a university, with a basic User Interface written with C and GTK4.","archived":false,"fork":false,"pushed_at":"2024-10-22T06:07:42.000Z","size":13604,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T08:34:27.918Z","etag":null,"topics":["c","constraint-satisfaction-problem","gtk4","minizinc"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aathish04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-28T12:46:33.000Z","updated_at":"2024-10-22T06:07:47.000Z","dependencies_parsed_at":"2025-02-19T05:39:32.326Z","dependency_job_id":null,"html_url":"https://github.com/Aathish04/MiniZincClassTimetable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aathish04/MiniZincClassTimetable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aathish04%2FMiniZincClassTimetable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aathish04%2FMiniZincClassTimetable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aathish04%2FMiniZincClassTimetable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aathish04%2FMiniZincClassTimetable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aathish04","download_url":"https://codeload.github.com/Aathish04/MiniZincClassTimetable/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aathish04%2FMiniZincClassTimetable/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31965830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","constraint-satisfaction-problem","gtk4","minizinc"],"created_at":"2024-11-07T14:57:07.989Z","updated_at":"2026-04-18T10:32:46.944Z","avatar_url":"https://github.com/Aathish04.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiniZincClassTimetable\n\nThis repository contains the source code, some input data, and some documentation that was written for an undergraduate course Project (which, frankly is a little rough around the edges), the details of which can be found below:\n\n- Project Title: Timetable Management System for an Academic Institution\n- Team Name: DB4C\n- Team Members: [Aathish Sivasubrahmanian](https://github.com/Aathish04/), [Ayshwarya Badhrinath](https://github.com/Ayshu05), [Harshida Sujatha Palaniraj](https://github.com/spharshida)\n\nThis project consists of a front-end application built in C that interfaces with a constraint-satisfaction/minimisation model written in MiniZinc, which is a constraint solver interfacer that is used to solve Constraint Logic Programming Problems.\n\n## Compilation\nThe C Front-End Application is built with the help of certain external Libraries.\nBefore compiling, one must ensure all these build-dependencies are satisfied.\nThese dependencies include:\n- The JSON Parsing Library [`JSMN`](https://github.com/zserge/jsmn) which must be installed into the `lib/ext` directory in the source code.\n- The GUI Toolkit library [`GTK4`](https://gtk.org/), which must be installed globally on the system.\n\nOnce `JSMN` has been installed to the appropriate directory, and `GTK4` has been installed, one can then compile the the file `gui.c` into the executable `gui.out`.\n\nIn addition to these build-dependencies, the application also requires the presence of the [`minizinc`](https://github.com/MiniZinc/libminizinc) binary/executable and the [`chuffed`](https://github.com/chuffed/chuffed) solver to work properly.\n\n## Running the Executable\nTo Generate a timetable, there needs to exist at least 4 different files:\n- One File with the schema: (The Courses CSV File)\n    - `courseid`,`coursecode`,`coursename`,`hoursperweek,numcredits`,`islab`\n-   One File with the schema: (The Faculty CSV File)\n    - `facultyid`,`departmentname`,`name`,`sectionid`,`courseid`\n-   One File with the schema: (The Room CSV File)\n    - `roomid`,`department`,`islab`\n-   One File with the schema: (The Sections CSV File)\n    - `sectionid`,`semester`,`department`,`sectionname`\n\nAfter running the `gui.exe`/`gui.out` file, the user will be presented with an interface\nthat allows them to select each of the 4 required data CSV files.\nAfter selecting these files, the end user must then select the number of slots/hours\nevery working day has [with a limit of 1 to 20 slots/hours], the number of working days\nin the week [with a limit of 1 to 7 days], and the `breakslot`\n[for lunches/separating the afternoon and forenoon sessions]\n\nIf no `breakslot` is required, it can be set to 0.\n\nOnce the parameters have been set, the `Solve For TimeTable` Button must be clicked.\n\nThe Application will then attempt to generate a timetable conforming to the required\nparameters.\nIf no valid timetable can be generated with those specific parameters, the application\nwill alert the user, informing them that their constraints could not be satisfied.\nIf a valid timetable can be generated, the one satisfying the highest number of soft\nconstraints the highest number of times will be displayed to the end user in a tabular\nform.\n\nPre-existing input data corresponding to testing for certain real-life scenarios (Test-Cases)\ncan be found in the folders enclosed within the `inputdata` folder. 4 Test cases have been included\nthat cover a variety of real-life scenarios.\n\n\n# Constraints Implemented:\n## Hard Constraints:\n1. [x] A classroom is assigned to just one lecture at a time.​\n2. [x] Staff/Student clash checks - Faculty and Students are not allotted different classes at the same time.​\n3. [x] The first hour must be allotted to an accredited course.[Now Soft]\n4. [x] A break between forenoon and afternoon session must exist. [Implemented, but I don't really like it because the break occupies one of the slots.]\n5. [x] A faculty member may have a maximum of two theory hours ~~and a maximum of one lab session per day.~~ [Too restrictive. Maximum of one lab session needs some thought. Present in code, but commented out entirely.]\n6. [x] Electives are scheduled for the same session across departments.\n7. [x] Faculty are not allotted Consecutive teaching hours.\n\n## Soft Constraints:\n1. [x] Allotting Core subjects in the last time slot should be avoided.​\n2. [x] ~~Co-curricular~~ Non-credited subjects are allotted to the afternoon sessions.\n3. [x] Sessions alternate between Core and non-Core subjects. [Check this for consistency.]\n4. [x] First hour session is allotted to department faculty.​\n5. [x] First hour allotted to an accredited course.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faathish04%2Fminizincclasstimetable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faathish04%2Fminizincclasstimetable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faathish04%2Fminizincclasstimetable/lists"}