Git Product home page Git Product logo

scheduling_solution's Introduction

scheduling_solution

Scheduling solution for my needs to match persons optimally to assignments based on 4 levels of preferences.

To get started, type python scheduling_solution.py --help. An example for the input CSV file is available on the repository tmp.csv.

A solution for scheduling hell!

Create a CSV with the following properties:

  • cell A1 = 'Assignment'
  • cell A2 = 'Counts'
  • cells A3-A[#] being the names of the entities that require assignments. For instance, "Section 1", "Section 2", etc.
  • cell B1 = 'Counts'
  • leave cell B2 blank
  • cells B3-B[#] being the number of assignments to be made to the corresponding entity in A3-A[#]. For instance, Section 2 requires 3 persons assigned to it.
  • cell C1 should contain the name of a person (who needs to be assigned an entity)
  • cell C2 should contain the count of entities to be assigned to this person
  • cells C3-C[#] should contain the preferences of the person to be assigned to the corresponding entity. The prefernce must be {1, 2, 3, 4}, where 1 is "most preferred" and 4 is "cannot make it at all."
  • follow the same thing for more persons as column C.

This script can then be run by providing the input csv name and an output csv name.

More options:

  • It is possible to skip column B and row 2 (the counts), and let the program assume that all counts are 1.

  • It is possible to specify the minimum/maximum counts and let the program generate assignments that are allowed to be over/under the counts provided in the CSV. Common use case: There are 4 homework party slots, and 18 TAs. Each slot needs a minimum of 4 people, but the remaining 2 can be assigned freely to the best preferred slot. In this case, this script can be run with --bound lower, specifying that the counts in the CSV are a lower bound.

scheduling_solution's People

Contributors

mudit2103 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.