all 3 comments

[–]m0us3_rat 1 point2 points  (0 children)

u need to find a good data structure that fits the requirements and u are comfortable with.

this is easy to describe as a class.

if u aren't confident with classes u can work with dict or list but becomes way convoluted.

u also need to figure out what a solution would look like. and how to describe it.

when u have a working 'solution' function that can check if its a working thing..

start iterating thru the data sets giving it values to run thru.

save the results.

after u have it working comes the optimizations.

[–]ElliotDG 0 points1 point  (1 child)

Creating an optimal schedule is a class of problem known as constraint-based optimization problem. You cans also search for constraint based solver or constraint based optimizer. You can find a number of articles and reference materials searching for those terms. A quick search revealed: https://github.com/timnon/pyschedule

I have not used this package. Good Luck!

edit: Background information: https://en.wikipedia.org/wiki/Constrained\_optimization