Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a schedule program
#1
Hello all,

I'm new here so let me introduce myself first. I'm Nick, 24 years old and a bio-farmacal student at Leiden University.

A few weeks ago I thought of an idea to create a program which could calculate the best possible schedule for employees. I'll try to explain a bit more about this.

Where I work schedule are made my hand and that creates a lot of frustration as well as the one making the schedule as the employees who are never satisfied. My idea was to create a program which would calculate the best possible schedule regarding restrictions like:
-At most N night shifts in a row
-At most N hours of work for employee Y
etc

I'm new to Python altough many many years ago I worked with PHP at school. I realise this idea won't be easy, but I like a challenge. Hopefully someone will be able to point me into the right direction

Thank you very much in advance for any help provided
Reply
#2
My wife worked at a job recently that a program scheduled the hours. Requested hours never seemed to be fulfilled, and the program scheduled people for weird time slots. Granted they might of had a crappy program.

try this
https://developers.google.com/optimizati...scheduling

install
https://developers.google.com/optimizati...ing/binary

but it looks like it is on pypi
https://pypi.python.org/pypi?%3Aaction=s...mit=search
Recommended Tutorials:
Reply
#3
(Nov-22-2017, 08:40 PM)ndplokkaar Wrote: A few weeks ago I thought of an idea to create a program which could calculate the best possible schedule for employees

Great minds must truly think alike as this is about the fourth time this 'great' idea has come up. One might actually begin to think it's homework.

Any way, you need to post what code you have, any error codes (in their entirety) what the actual output is you are getting versus the output you expect to get.

Refer to out Help document for How to ask a proper question and also the section on BBCode so you can properly post your code, errors, etc.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#4
also see: https://pymotw.com/3/sched/
and: https://docs.python.org/3/library/sched.html
Reply
#5
(Nov-22-2017, 08:55 PM)sparkz_alot Wrote:
(Nov-22-2017, 08:40 PM)ndplokkaar Wrote: A few weeks ago I thought of an idea to create a program which could calculate the best possible schedule for employees

Great minds must truly think alike as this is about the fourth time this 'great' idea has come up. One might actually begin to think it's homework.

Any way, you need to post what code you have, any error codes (in their entirety) what the actual output is you are getting versus the output you expect to get.

Refer to out Help document for How to ask a proper question and also the section on BBCode so you can properly post your code, errors, etc.

Well I can assure you my study has absolutely nothing to do with programming. If I posted this in the wrong place I'm very sorry, but as I stated I'm new here.

@metulburr

Thanks for the ideas. I'll see if I can do something with this

@larz thank you as well
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cancelling previous schedule cosmarchy 2 2,783 Sep-15-2021, 04:55 PM
Last Post: Larz60+
  creating simplex tableau pivot program easy or difficult for a beginner in Python? alex_0 2 2,568 Mar-31-2021, 03:39 AM
Last Post: Larz60+
  Hosting a script on a VPS, and on a schedule? oldguy 0 2,944 Mar-13-2021, 02:46 AM
Last Post: oldguy
  creating hex dump modifying program ensoniq 3 2,632 Oct-14-2019, 08:21 AM
Last Post: Larz60+
  Creating Vector from a Program ericvrocha 3 1,883 Oct-08-2019, 07:43 AM
Last Post: newbieAuggie2019
  something i noticed about the "schedule" module Stan2292 1 1,765 Aug-30-2019, 06:04 AM
Last Post: buran
  How to schedule Jupyter Notebooks with Papermill wendysling 0 2,499 Jun-11-2019, 05:53 PM
Last Post: wendysling
  schedule module conundrum wgovideo 11 4,314 May-29-2019, 06:39 PM
Last Post: wgovideo
  Creating a Mindmap program J_Miller 3 6,379 Apr-06-2019, 05:21 PM
Last Post: ichabod801
  creating a list during program execution. hobbyprogrammer 2 2,401 Jan-26-2019, 09:06 PM
Last Post: hobbyprogrammer

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020