This is a work-in-progress implementation of a CSP solver for clinic shift scheduling.
- Generate the Constraint Function Code: Run the following command to generate the constraint functions:
$ python3 -m src.constraints_creator- Run the Solver: After generating the constraints, run the solver with the command:
$ python3 CSP.pyThis will output a solution to the CSP.
Note: Not all rules have been implemented yet. 3. Run test and debug You can run the test with
$ python3 -m unittest tests.[file]You can debug the code with:
$ python -m debugpy --listen 5678 --wait-for-client -m unittest tests.[file]And the attach a debugpy client. If you run the code inside docker:
$ python -m debugpy --listen 0.0.0.0:5678 --wait-for-client -m unittest tests.[file]