SlideShare a Scribd company logo
Optimized Classroom Scheduling at LaGrange
College
Jon M. Ernstberger
21 March 2016
About LaGrange College
About LaGrange College
About LaGrange College
We are growing.
Classroom Assignment
Heres how this process currently works:
Departments know which courses must run in a given term.
Knowing familial responsibilities, chairs make teaching
schedules.
Everyone tries to schedule in their own building.
Priority is given to largest classes.
Simple Case
A builidng with two rooms and only three MWF scheduling periods.
Period No. Room 1 Room 2
One
Two
Three
You have six scheduling opportunities.
Simple Case
Call each of those spaces a “bin”.
Period No. Room 1 Room 2
One 1 2
Two 3 4
Three 5 6
What if you only have four classes and two professors?
Metaheuristic Approach - Inspired by Genetic Algorithm
Holland[1] defines this concept of a genetic algorithm.
A population P of trial solutions is randomly created, typically
in Rm×n – m “solutions” for a problem whose domain is in
Rn(a, b).
A fitness function is defined so that the goodness-of-fit of
each member (possible solution) is measured.
Those solutions deemed most fit remain until a new
“generation”. This process is known as elitism.
Offspring are created via the two processes mutation and
crossover.
Mutation is the result of random noise being added to a
population (or individual attributes, the genes).
Crossover occurs with a probability p and is a direct swap
between genes.
GA Intuition
GA Inutition, cont.
GA Inutition, cont.
fast sickly good stripe pattern smart
too bold heart problem keen smell unintelligent
premature deaf good hearing disease resistant
GA Inutition, Elitism
fast good stripe pattern smart
keen smell
good hearing disease resistant
GA Inutition, Crossover
fast f,gs good stripe pattern smart
f,s gs,ks keen smell s,dr
s,gs ks,gh good hearing disease resistant
GA Inutition, Crossover and Mutation
fast f+
,gs good stripe pattern smart
f,s− gs−,ks−
keen smell s−,dr+
s+,gs+ ks+
,gh−
good hearing disease resistant
#GAProbz
There is no formal theory for the convergence (or lack
thereof) of the genetic algorithm.
The algorithm cannot state definitively that there is no
optimized classroom schedule.
It could be fast or it could be slow.
Computationally intense.
Stochastic Integer Search
We use a custom, integer-based genetic algorithm-esque search
that does the following:
We use random permutations of the integers in the set
{1, . . . , q} (q is the number of scheduling opportunities) to
create each member of the population. The population
P ∈ Zm×n[1, q] where n ≤ q.
In our formulation, mutation over the integers and crossover
were equivalent–a swap.
Fitness Functional
How do I determine a good solution may be?
Criteria:
1. Make sure I get a “solution” where the class fits in the space.
2. Can’t double-book a professor.
How do we do that?
Fitness Functional, Class Fits the Room
Randomly generate the population P and select the ith
member.
Corresponding to the population member, Pi we assign
R(Pi ) := C
where C is the list of the enrollment caps of our offered
courses (of length q) and R is the list of our “bins”.
Class Fits the Room, cont.
Define
S is the number of seats for classrooms at the designated
times.
The Heaviside function as
H(x) =
1 x > 0
0 x ≤ 0
Then, create a function
J1(Pi ) =
q
j=1
H (Rj (Pi ) − Sj ) .
Fitness Functional, Don’t Overbook the Professor
Corresponding to the population member, Pi we assign
A(Pi ) := T
where T is the list of the instructors of our offered courses
(of length q) and A is the list of our instructor “bins”.
Reshape the list A to look like a grid of rooms by time.
Aq×1 → ˜A(r×t)
where r is the number of rooms we can use and t is the
number of time slots.
Don’t Overbook the Professor, cont.
Now, I do a columnwise sort on ˜A.
˜As = sort ˜A .
To determine the number of overbookings, I do some Boolean
logic.
J2(Pi ) = ˜As ≡ 0 − unique ˜As ≡ 0
Optimization Problem
The optimization problem then becomes
min
Pi ∈Z1×q
J(Pi ) = min
Pi ∈Z1×q
(J1(Pi ) + J2(Pi ))
= min
Pi ∈Z1×q


q
j=1
H (Rj (Pi ) − Sj )
+ ˜As ≡ 0 − unique ˜As ≡ 0
Class Schedules
MWF TTh
8:30a-9:30a 8:00a-9:30a
9:40a-10:40a 9:40a-11:15a
10:50a-11:50a 1:00p-2:30p
12:30p-1:30p 2:40p-4:10p
1:40p-2:40p
2:50p-3:50p
Science Building
Removed all labs and spaces that require specialty scheduling.
Nine classrooms.
38 classes.
17 professors.
Results follow.
Size of the Scheduling Problem
383 individual courses (labs, recitals, etc.)
Covers hundreds of spaces on campus.
Of the spaces, many have specialty equipment and are not for
general use.
Some are computer labs.
Lesson One
If you cannot solve a problem, make it easier.
Reduced Problem
If we reduce our problem in this way, here’s what we do:
Remove all science and computer labs.
Remove any recital or performance spaces.
Remove any spaces with healthcare technology (nursing).
Remove any spaces with exercise/strength/conditioning
equipment.
Building Name Number of Classrooms
Callaway Academic 6 (14,16,30,30,30,40)
Smith Hall 7 (14,20,21,22,23,25,48)
Hawkes Hall 2 (24,24)
Manget 9 (12,12,12,14,14,20,24,24,24)
Callaway Science 9 (18,18,24,24,24,34,40,48,64)
Total 33
Lesson Two
Money solves lots of problems.
Campus Problem
180 courses
67 different professors
33 rooms
330 scheduling opportunities.
Campus Problem, Results
There are only flawed results.
So far, the best results I’ve found still have 9 scheduling errors.
Runtime is about 31 minutes.
Future Work
Prioritize classes to be in the same building as that of the
office of the professor.
Build in early morning and late afternoon bounds.
Experiment with Longer calendars.
Implement inter-departmental demands.
Some Additional Lessons
Mathematicians are problem solvers.
There is always low-hanging fruit to be plucked.
Failure is okay.
We just report the news; we don’t make it.
References I
J.H. Holland.
Genetic algorithms and the optimal allocation of trials.
SIAM Journal of Computing, 2(2), 1973.

More Related Content

Similar to Optimized Classroom Scheduling at LaGrange College

NICE Implementations of Variational Inference
NICE Implementations of Variational Inference NICE Implementations of Variational Inference
NICE Implementations of Variational Inference
Natan Katz
 
Operations management chapter 03 homework assignment use this
Operations management chapter 03 homework assignment use thisOperations management chapter 03 homework assignment use this
Operations management chapter 03 homework assignment use this
POLY33
 
G6 m4-d-lesson 14-t
G6 m4-d-lesson 14-tG6 m4-d-lesson 14-t
G6 m4-d-lesson 14-tmlabuski
 
Model Selection and Validation
Model Selection and ValidationModel Selection and Validation
Model Selection and Validation
gmorishita
 
Data mining 6 klasifikasi naive bayes classifier
Data mining 6   klasifikasi naive bayes classifierData mining 6   klasifikasi naive bayes classifier
Data mining 6 klasifikasi naive bayes classifier
IrwansyahSaputra1
 
Artificial intelligence cs607 handouts lecture 11 - 45
Artificial intelligence   cs607 handouts lecture 11 - 45Artificial intelligence   cs607 handouts lecture 11 - 45
Artificial intelligence cs607 handouts lecture 11 - 45
Sattar kayani
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
Programming Exam Help
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
Mohammad Imam Hossain
 
Machine Learning Chapter 11 2
Machine Learning Chapter 11 2Machine Learning Chapter 11 2
Machine Learning Chapter 11 2butest
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
Statistics Homework Helper
 
12-greedy.ppt
12-greedy.ppt12-greedy.ppt
12-greedy.ppt
ASVKVinayak
 
Drools Planner Chtijug 2010
Drools Planner Chtijug 2010Drools Planner Chtijug 2010
Drools Planner Chtijug 2010Nicolas Heron
 
L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learning
Yogendra Singh
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
Programming Homework Help
 
Algorithms Exam Help
Algorithms Exam HelpAlgorithms Exam Help
Algorithms Exam Help
Programming Exam Help
 
Algorithm Assignment Help
Algorithm Assignment HelpAlgorithm Assignment Help
Algorithm Assignment Help
Programming Homework Help
 
Introduction to polynomials
Introduction to polynomialsIntroduction to polynomials
Introduction to polynomials
narayana dash
 
AI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, FlexudyAI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, Flexudy
Erlangen Artificial Intelligence & Machine Learning Meetup
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdf
Junghyun Lee
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
Excel Homework Help
 

Similar to Optimized Classroom Scheduling at LaGrange College (20)

NICE Implementations of Variational Inference
NICE Implementations of Variational Inference NICE Implementations of Variational Inference
NICE Implementations of Variational Inference
 
Operations management chapter 03 homework assignment use this
Operations management chapter 03 homework assignment use thisOperations management chapter 03 homework assignment use this
Operations management chapter 03 homework assignment use this
 
G6 m4-d-lesson 14-t
G6 m4-d-lesson 14-tG6 m4-d-lesson 14-t
G6 m4-d-lesson 14-t
 
Model Selection and Validation
Model Selection and ValidationModel Selection and Validation
Model Selection and Validation
 
Data mining 6 klasifikasi naive bayes classifier
Data mining 6   klasifikasi naive bayes classifierData mining 6   klasifikasi naive bayes classifier
Data mining 6 klasifikasi naive bayes classifier
 
Artificial intelligence cs607 handouts lecture 11 - 45
Artificial intelligence   cs607 handouts lecture 11 - 45Artificial intelligence   cs607 handouts lecture 11 - 45
Artificial intelligence cs607 handouts lecture 11 - 45
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
 
AI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction ProblemAI 7 | Constraint Satisfaction Problem
AI 7 | Constraint Satisfaction Problem
 
Machine Learning Chapter 11 2
Machine Learning Chapter 11 2Machine Learning Chapter 11 2
Machine Learning Chapter 11 2
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
12-greedy.ppt
12-greedy.ppt12-greedy.ppt
12-greedy.ppt
 
Drools Planner Chtijug 2010
Drools Planner Chtijug 2010Drools Planner Chtijug 2010
Drools Planner Chtijug 2010
 
L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learning
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
 
Algorithms Exam Help
Algorithms Exam HelpAlgorithms Exam Help
Algorithms Exam Help
 
Algorithm Assignment Help
Algorithm Assignment HelpAlgorithm Assignment Help
Algorithm Assignment Help
 
Introduction to polynomials
Introduction to polynomialsIntroduction to polynomials
Introduction to polynomials
 
AI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, FlexudyAI applications in education, Pascal Zoleko, Flexudy
AI applications in education, Pascal Zoleko, Flexudy
 
block-mdp-masters-defense.pdf
block-mdp-masters-defense.pdfblock-mdp-masters-defense.pdf
block-mdp-masters-defense.pdf
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 

More from Jon Ernstberger

Mathematics Graduate Student Seminar
Mathematics Graduate Student Seminar Mathematics Graduate Student Seminar
Mathematics Graduate Student Seminar
Jon Ernstberger
 
Social Media for the MAA Southeast Section
Social Media for the MAA Southeast SectionSocial Media for the MAA Southeast Section
Social Media for the MAA Southeast Section
Jon Ernstberger
 
Graduate Student Workshop: Sound Teaching Practices
Graduate Student Workshop:  Sound Teaching PracticesGraduate Student Workshop:  Sound Teaching Practices
Graduate Student Workshop: Sound Teaching Practices
Jon Ernstberger
 
OctaveGT Toolbox: Student Growth Through an Open Software Project
OctaveGT Toolbox: Student Growth Through an Open Software ProjectOctaveGT Toolbox: Student Growth Through an Open Software Project
OctaveGT Toolbox: Student Growth Through an Open Software Project
Jon Ernstberger
 
HigherEdScope: A New Frontier in Digital Development
HigherEdScope: A New Frontier in Digital DevelopmentHigherEdScope: A New Frontier in Digital Development
HigherEdScope: A New Frontier in Digital Development
Jon Ernstberger
 
Going the Distance: Planning Through the Lens of Online Learning
Going the Distance: Planning Through the Lens of Online LearningGoing the Distance: Planning Through the Lens of Online Learning
Going the Distance: Planning Through the Lens of Online Learning
Jon Ernstberger
 
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
Jon Ernstberger
 
MAA Southeast Section Picture Slideshow
MAA Southeast Section Picture SlideshowMAA Southeast Section Picture Slideshow
MAA Southeast Section Picture Slideshow
Jon Ernstberger
 
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
Jon Ernstberger
 
2007 Oral Preliminary Defense
2007 Oral Preliminary Defense2007 Oral Preliminary Defense
2007 Oral Preliminary Defense
Jon Ernstberger
 
The Moodle Gradebook
The Moodle GradebookThe Moodle Gradebook
The Moodle Gradebook
Jon Ernstberger
 
NCSU MGSA Unix Presentation
NCSU MGSA Unix PresentationNCSU MGSA Unix Presentation
NCSU MGSA Unix Presentation
Jon Ernstberger
 
An Online, General Education Math/Finances/Spreadsheet Course v. 3.x
An Online, General Education Math/Finances/Spreadsheet Course v. 3.xAn Online, General Education Math/Finances/Spreadsheet Course v. 3.x
An Online, General Education Math/Finances/Spreadsheet Course v. 3.x
Jon Ernstberger
 
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
Jon Ernstberger
 
Why Computational/Applied Mathematics?
Why Computational/Applied Mathematics?Why Computational/Applied Mathematics?
Why Computational/Applied Mathematics?
Jon Ernstberger
 
Sustainability of the Irish; 3D Journeys: A Preview
Sustainability of the Irish; 3D Journeys: A PreviewSustainability of the Irish; 3D Journeys: A Preview
Sustainability of the Irish; 3D Journeys: A Preview
Jon Ernstberger
 
Irish E fforts at Sustainability: A Green Island?"
Irish Efforts at Sustainability: A Green Island?"Irish Efforts at Sustainability: A Green Island?"
Irish E fforts at Sustainability: A Green Island?"
Jon Ernstberger
 
Compare and contrast: Online vs. Traditional Course Syllabi
Compare and contrast:   Online vs. Traditional Course SyllabiCompare and contrast:   Online vs. Traditional Course Syllabi
Compare and contrast: Online vs. Traditional Course Syllabi
Jon Ernstberger
 
Online Learning at LaGrange College
Online Learning at LaGrange CollegeOnline Learning at LaGrange College
Online Learning at LaGrange College
Jon Ernstberger
 
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb..."A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
Jon Ernstberger
 

More from Jon Ernstberger (20)

Mathematics Graduate Student Seminar
Mathematics Graduate Student Seminar Mathematics Graduate Student Seminar
Mathematics Graduate Student Seminar
 
Social Media for the MAA Southeast Section
Social Media for the MAA Southeast SectionSocial Media for the MAA Southeast Section
Social Media for the MAA Southeast Section
 
Graduate Student Workshop: Sound Teaching Practices
Graduate Student Workshop:  Sound Teaching PracticesGraduate Student Workshop:  Sound Teaching Practices
Graduate Student Workshop: Sound Teaching Practices
 
OctaveGT Toolbox: Student Growth Through an Open Software Project
OctaveGT Toolbox: Student Growth Through an Open Software ProjectOctaveGT Toolbox: Student Growth Through an Open Software Project
OctaveGT Toolbox: Student Growth Through an Open Software Project
 
HigherEdScope: A New Frontier in Digital Development
HigherEdScope: A New Frontier in Digital DevelopmentHigherEdScope: A New Frontier in Digital Development
HigherEdScope: A New Frontier in Digital Development
 
Going the Distance: Planning Through the Lens of Online Learning
Going the Distance: Planning Through the Lens of Online LearningGoing the Distance: Planning Through the Lens of Online Learning
Going the Distance: Planning Through the Lens of Online Learning
 
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
Two Balls, One Bat: The SACSCOC Fifth-Year Review as a Motivator For Institut...
 
MAA Southeast Section Picture Slideshow
MAA Southeast Section Picture SlideshowMAA Southeast Section Picture Slideshow
MAA Southeast Section Picture Slideshow
 
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
High Speed Parameter Estimation for a Homogenized Energy Model- Doctoral Defe...
 
2007 Oral Preliminary Defense
2007 Oral Preliminary Defense2007 Oral Preliminary Defense
2007 Oral Preliminary Defense
 
The Moodle Gradebook
The Moodle GradebookThe Moodle Gradebook
The Moodle Gradebook
 
NCSU MGSA Unix Presentation
NCSU MGSA Unix PresentationNCSU MGSA Unix Presentation
NCSU MGSA Unix Presentation
 
An Online, General Education Math/Finances/Spreadsheet Course v. 3.x
An Online, General Education Math/Finances/Spreadsheet Course v. 3.xAn Online, General Education Math/Finances/Spreadsheet Course v. 3.x
An Online, General Education Math/Finances/Spreadsheet Course v. 3.x
 
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
Reflections on the Initiation of a Modeling-Focused Undergraduate Research Pr...
 
Why Computational/Applied Mathematics?
Why Computational/Applied Mathematics?Why Computational/Applied Mathematics?
Why Computational/Applied Mathematics?
 
Sustainability of the Irish; 3D Journeys: A Preview
Sustainability of the Irish; 3D Journeys: A PreviewSustainability of the Irish; 3D Journeys: A Preview
Sustainability of the Irish; 3D Journeys: A Preview
 
Irish E fforts at Sustainability: A Green Island?"
Irish Efforts at Sustainability: A Green Island?"Irish Efforts at Sustainability: A Green Island?"
Irish E fforts at Sustainability: A Green Island?"
 
Compare and contrast: Online vs. Traditional Course Syllabi
Compare and contrast:   Online vs. Traditional Course SyllabiCompare and contrast:   Online vs. Traditional Course Syllabi
Compare and contrast: Online vs. Traditional Course Syllabi
 
Online Learning at LaGrange College
Online Learning at LaGrange CollegeOnline Learning at LaGrange College
Online Learning at LaGrange College
 
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb..."A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
"A Metaheuristic Search Technique for Graceful Labels of Graphs" by J. Ernstb...
 

Recently uploaded

20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
MAGOTI ERNEST
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
SAMIR PANDA
 
ISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
ISI 2024: Application Form (Extended), Exam Date (Out), EligibilityISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
ISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
SciAstra
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
Lokesh Patil
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptxANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
RASHMI M G
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
sanjana502982
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Studia Poinsotiana
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
AlaminAfendy1
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
moosaasad1975
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Sérgio Sacani
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
tonzsalvador2222
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Ana Luísa Pinho
 
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
Wasswaderrick3
 
Introduction to Mean Field Theory(MFT).pptx
Introduction to Mean Field Theory(MFT).pptxIntroduction to Mean Field Theory(MFT).pptx
Introduction to Mean Field Theory(MFT).pptx
zeex60
 

Recently uploaded (20)

20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptxThe use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
The use of Nauplii and metanauplii artemia in aquaculture (brine shrimp).pptx
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
Seminar of U.V. Spectroscopy by SAMIR PANDA
 Seminar of U.V. Spectroscopy by SAMIR PANDA Seminar of U.V. Spectroscopy by SAMIR PANDA
Seminar of U.V. Spectroscopy by SAMIR PANDA
 
ISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
ISI 2024: Application Form (Extended), Exam Date (Out), EligibilityISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
ISI 2024: Application Form (Extended), Exam Date (Out), Eligibility
 
Nutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technologyNutraceutical market, scope and growth: Herbal drug technology
Nutraceutical market, scope and growth: Herbal drug technology
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptxANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
ANAMOLOUS SECONDARY GROWTH IN DICOT ROOTS.pptx
 
Toxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and ArsenicToxic effects of heavy metals : Lead and Arsenic
Toxic effects of heavy metals : Lead and Arsenic
 
platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
Salas, V. (2024) "John of St. Thomas (Poinsot) on the Science of Sacred Theol...
 
In silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptxIn silico drugs analogue design: novobiocin analogues.pptx
In silico drugs analogue design: novobiocin analogues.pptx
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
Earliest Galaxies in the JADES Origins Field: Luminosity Function and Cosmic ...
 
Chapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisisChapter 12 - climate change and the energy crisis
Chapter 12 - climate change and the energy crisis
 
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
Deep Behavioral Phenotyping in Systems Neuroscience for Functional Atlasing a...
 
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
DERIVATION OF MODIFIED BERNOULLI EQUATION WITH VISCOUS EFFECTS AND TERMINAL V...
 
Introduction to Mean Field Theory(MFT).pptx
Introduction to Mean Field Theory(MFT).pptxIntroduction to Mean Field Theory(MFT).pptx
Introduction to Mean Field Theory(MFT).pptx
 

Optimized Classroom Scheduling at LaGrange College

  • 1. Optimized Classroom Scheduling at LaGrange College Jon M. Ernstberger 21 March 2016
  • 6. Classroom Assignment Heres how this process currently works: Departments know which courses must run in a given term. Knowing familial responsibilities, chairs make teaching schedules. Everyone tries to schedule in their own building. Priority is given to largest classes.
  • 7. Simple Case A builidng with two rooms and only three MWF scheduling periods. Period No. Room 1 Room 2 One Two Three You have six scheduling opportunities.
  • 8. Simple Case Call each of those spaces a “bin”. Period No. Room 1 Room 2 One 1 2 Two 3 4 Three 5 6 What if you only have four classes and two professors?
  • 9. Metaheuristic Approach - Inspired by Genetic Algorithm Holland[1] defines this concept of a genetic algorithm. A population P of trial solutions is randomly created, typically in Rm×n – m “solutions” for a problem whose domain is in Rn(a, b). A fitness function is defined so that the goodness-of-fit of each member (possible solution) is measured. Those solutions deemed most fit remain until a new “generation”. This process is known as elitism. Offspring are created via the two processes mutation and crossover. Mutation is the result of random noise being added to a population (or individual attributes, the genes). Crossover occurs with a probability p and is a direct swap between genes.
  • 12. GA Inutition, cont. fast sickly good stripe pattern smart too bold heart problem keen smell unintelligent premature deaf good hearing disease resistant
  • 13. GA Inutition, Elitism fast good stripe pattern smart keen smell good hearing disease resistant
  • 14. GA Inutition, Crossover fast f,gs good stripe pattern smart f,s gs,ks keen smell s,dr s,gs ks,gh good hearing disease resistant
  • 15. GA Inutition, Crossover and Mutation fast f+ ,gs good stripe pattern smart f,s− gs−,ks− keen smell s−,dr+ s+,gs+ ks+ ,gh− good hearing disease resistant
  • 16. #GAProbz There is no formal theory for the convergence (or lack thereof) of the genetic algorithm. The algorithm cannot state definitively that there is no optimized classroom schedule. It could be fast or it could be slow. Computationally intense.
  • 17. Stochastic Integer Search We use a custom, integer-based genetic algorithm-esque search that does the following: We use random permutations of the integers in the set {1, . . . , q} (q is the number of scheduling opportunities) to create each member of the population. The population P ∈ Zm×n[1, q] where n ≤ q. In our formulation, mutation over the integers and crossover were equivalent–a swap.
  • 18. Fitness Functional How do I determine a good solution may be? Criteria: 1. Make sure I get a “solution” where the class fits in the space. 2. Can’t double-book a professor. How do we do that?
  • 19. Fitness Functional, Class Fits the Room Randomly generate the population P and select the ith member. Corresponding to the population member, Pi we assign R(Pi ) := C where C is the list of the enrollment caps of our offered courses (of length q) and R is the list of our “bins”.
  • 20. Class Fits the Room, cont. Define S is the number of seats for classrooms at the designated times. The Heaviside function as H(x) = 1 x > 0 0 x ≤ 0 Then, create a function J1(Pi ) = q j=1 H (Rj (Pi ) − Sj ) .
  • 21. Fitness Functional, Don’t Overbook the Professor Corresponding to the population member, Pi we assign A(Pi ) := T where T is the list of the instructors of our offered courses (of length q) and A is the list of our instructor “bins”. Reshape the list A to look like a grid of rooms by time. Aq×1 → ˜A(r×t) where r is the number of rooms we can use and t is the number of time slots.
  • 22. Don’t Overbook the Professor, cont. Now, I do a columnwise sort on ˜A. ˜As = sort ˜A . To determine the number of overbookings, I do some Boolean logic. J2(Pi ) = ˜As ≡ 0 − unique ˜As ≡ 0
  • 23. Optimization Problem The optimization problem then becomes min Pi ∈Z1×q J(Pi ) = min Pi ∈Z1×q (J1(Pi ) + J2(Pi )) = min Pi ∈Z1×q   q j=1 H (Rj (Pi ) − Sj ) + ˜As ≡ 0 − unique ˜As ≡ 0
  • 24. Class Schedules MWF TTh 8:30a-9:30a 8:00a-9:30a 9:40a-10:40a 9:40a-11:15a 10:50a-11:50a 1:00p-2:30p 12:30p-1:30p 2:40p-4:10p 1:40p-2:40p 2:50p-3:50p
  • 25. Science Building Removed all labs and spaces that require specialty scheduling. Nine classrooms. 38 classes. 17 professors. Results follow.
  • 26. Size of the Scheduling Problem 383 individual courses (labs, recitals, etc.) Covers hundreds of spaces on campus. Of the spaces, many have specialty equipment and are not for general use. Some are computer labs.
  • 27. Lesson One If you cannot solve a problem, make it easier.
  • 28. Reduced Problem If we reduce our problem in this way, here’s what we do: Remove all science and computer labs. Remove any recital or performance spaces. Remove any spaces with healthcare technology (nursing). Remove any spaces with exercise/strength/conditioning equipment. Building Name Number of Classrooms Callaway Academic 6 (14,16,30,30,30,40) Smith Hall 7 (14,20,21,22,23,25,48) Hawkes Hall 2 (24,24) Manget 9 (12,12,12,14,14,20,24,24,24) Callaway Science 9 (18,18,24,24,24,34,40,48,64) Total 33
  • 29. Lesson Two Money solves lots of problems.
  • 30. Campus Problem 180 courses 67 different professors 33 rooms 330 scheduling opportunities.
  • 31. Campus Problem, Results There are only flawed results. So far, the best results I’ve found still have 9 scheduling errors. Runtime is about 31 minutes.
  • 32. Future Work Prioritize classes to be in the same building as that of the office of the professor. Build in early morning and late afternoon bounds. Experiment with Longer calendars. Implement inter-departmental demands.
  • 33. Some Additional Lessons Mathematicians are problem solvers. There is always low-hanging fruit to be plucked. Failure is okay. We just report the news; we don’t make it.
  • 34. References I J.H. Holland. Genetic algorithms and the optimal allocation of trials. SIAM Journal of Computing, 2(2), 1973.