S
S
Sergey Nizhny Novgorod2016-04-15 08:03:21
Django
Sergey Nizhny Novgorod, 2016-04-15 08:03:21

How to implement a scheduling algorithm in Django?

Guys, hello everyone.
Task: to make a calculator that will make shifts for the auto center. Those. you drive in the name of the master - hourly load - conditions (his personal preferences). And the system calculates the work schedule for 10 masters.
I have an implementation idea:
A generic function that takes data and bypasses the underlying algorithm by including conditional functions. But this thing will be extremely large and very likely extremely slow
. Is there anything that can make it easier to implement such a thing?
---
In this case, I'm more interested in the methodology of this algorithm.
1) If I do the usual algorithm, then I will be given the first option that matches all the criteria. And this is not very good. I want to first post a few options that will meet my conditions, and then evaluate them by matching indexes and display the most suitable one. Basically, I need math.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question