Spring 2023
MWF 1:30-2:20pm
Lawson 1106
http://www.cs.purdue.edu/homes/dgleich/cs520-2023
David F. Gleich
Lawson 1207
dgleich@purdue.edu
https://www.cs.purdue.edu/homes/dgleich
Monday 11am-noon. On Zoom or in-person (Lawson 1207) which varies by week.
Shu Li li3916@purdue.edu
Friday 10-11 am in HAAS 115.
We will use Gradescope for homework submission and grading.
We will use Brightspace in more limited capacities.
We will use either Piazza or Campuswire for class discussions and questions.
This course is a introduction to optimization for graduate students
in any computational field.
It will cover many of the fundamentals of optimization and is a good
course to prepare those who wish to use optimization in their
research and those who wish to become optimizers by developing
new algorithms and theory. Selected topics include:
If there is interest, we may cover limited aspects of how optimization is used in ML, such as stochastic gradient descent. Although optimization in ML tends to be more practically oriented compared with theory. (There is good theory, but this isn't the class for that!)
This class is a graduate lecture class. Students should have taken a _graduate level numerical linear algebra or matrix analysis class__ that covers: QR factorizations, the singular value decomposition, null-spaces, and eigenvalues. David will assume you know this stuff, or can learn it yourself, if you take this class. He will also assume an undergraduate level understanding of mathematical analysis, i.e. limits, convergence sequences, sub-sequences. Multi-dimensional Taylor series will also play a large role in the class.
Optimization is an incredibly rich and deep field. This graduate class only scratches the surface to show how to use optimization to solve problems, and peeks at the details of how optimization algorithms work.
When we reach the end of the class, you, the student, will:
The formal requirements and percentage of the total course grade are:
You must meaningfully participate in each of the three components (homeworks, midterm, and final project). Lack of participation in one area may result in a failing grade for the class or a multiple letter grade reduction. (That is, someone who gets a 65% average on the exams and doesn't do any homework might be able to get a D; this policy would reduce their grade to an F; someone who aced both homeworks and the midterm but skipped the final could have gotten a B-, this would reduce them to a C or D. )
Initial policy: These will be worth 5% of the total grade and are graded as taken/missed. Students can miss up to 7 quizzes with no penalty. Make sure you contact the instructor (David) if you anticipate missing more than 5 quizzes due to any absenses as there may be some accommodation in special circumstances. Note that this is an all-or-nothing grade.
Updated policy after week 12: On week 12, we switched to a flipped classroom model for the last four weeks. (Week 13, 14, 15, 16). But one week was spring break. So for 11/15 weeks, we had the above policy.
Consequently, we will reduce the number of "missed" days to 5 under the previous policy, (this corresponds to approximately scaling the days to the length of the class).
For the flipped classroom weeks, the policy will be that you need to participate in class once a week. You can miss one week. You participate by handing in a question relating to the lecture material at the start of class with your name on it. You need to submit one question during the week to get credit for it.
This grade remains all or nothing. So you could miss up to 5 quizzes with no penalty for the first 11 weeks of class, and then miss one week of participation in the flipped classroom.
The following textbook (available online) will also be used heavily:
Numerical Optimization. Jorge Nocedal and Stephen J. Wright. 2nd edition. Springer, 2006. Available online for Purdue students!
doi:10.1007/978-0-387-40065-5
Another text book that is used is:
Algorithms for Optimization Mykel Kochenderfer and Tim A. Wheeler. MIT Press, 2019.
I also highly recommend
Linear and Nonlinear Optimization. Igor Griva, Stephen G. Nash, Ariela Sofer SIAM, 2009.
See also the reading list online for additional references.
Officially, the Algorithms for Optimization book is the required one. The required textbook is the best reflection of a textbook that encapsulates a future reference for what is covered in this course. The course can be successfully completed reading Nocedal and Wright instead without purchasing Algorithms for Optimization.
Students are expected to maintain a professional and respectful classroom environment. In particular, this includes:
You may use any non-disruptive personal electronics during class. One exception is during in-class quizzes and tests, for which personal electronics are prohibited.
We will have an announcement system -- likely I will enter your email address into a list I maintain. This will send an email message to your purdue email address and you are expected to check this account for information related to the class. We will verify that everyone in the class is receiving these messages early on.
The best way to correspond in this class is to post a note on Piazza or Campuswire (whichever we decide to use).
Please feel free to email me with any questions, but
please prefix all email titles with the string CS-52000:
to aid in filtering email. Also, consider using a private
note on Piazza instead.
I will make every effort to respond promptly, however, replies could be delayed due to circumstances outside of my control. In particular, do not rely on a response between the hours of 8pm and 8am.
Please do not attempt to call, google chat, skype, facebook, or tweet with me without prior arrangement.
I expect all assignments to be legible and well-written.
Mathematical derivations alone are insufficient and you must explain
your reasoning in sentences.
For this, I will suggest using a computer with LaTeX
to prepare all submitted materials.
If you do not plan to use a computer and LaTeX to prepare solutions to homeworks, you must let me know.
Also, using LaTeX can increase the temptation to share answers. All LaTeX must be written individually.
The past two years, the class has selected the following policy among a range of options. To be more efficient, this year, I am preselecting the same option.
This policy does not apply on a per-homework basis but on a per-course basis. That is, if you turn in Homework 1 about 5 minutes after the deadline, then you have used your 1 free day. If you then turn in homework 2 about 5 minutes after the deadline, you will lose 10 points (because you have used two extension days, one for HW 1 and one for HW2). If you then turn in homework 3 about 5 minutes after the deadline, you will lose 25 points. If you then turn in homework 4 about 5 minutes after the deadline, you will lose 50 points! (That's almost the value of a homework.)
Note that under this policy, there will be no extensions given for
common scenarios including
interviews, conferences, minor illnesses, etc.
(There may be extensions for any
of the reasons discussed below including grief, etc.)
You are expected to manage your time.
Why do we have to have a late work policy?
Other choices for homework late policies we could reconsider if there is strong student-led momentum.
Policy 1 (Flexible, communicative, and ambiguous policy):
reasonable
is final and will not be negociated. Policy 2 (Reasonably extended deadlines, prescribed penalty):
This policy does not apply on a per-homework basis but on a per-course basis. That is, if you turn in Homework 1 about 5 minutes after the deadline, then you have used your 1 free day. If you then turn in homework 2 about 5 minutes after the deadline, you will lose 10 points. If you then turn in homework 3 about 5 minutes after the deadline, you will lose 25 points. If you then turn in homework 4 about 5 minutes after the deadline, you will lose 50 points! (That's almost the value of a homework.)
Note that under this policy, there will be no extensions given for common scenarios including interviews, conferences, etc.
The last time I taught this, we had Policy 2. But we will take a vote this time.
Here is more detail on policy 2.
This policy does not apply on a per-homework basis but on a per-course basis. That is, if you turn in Homework 1 about 5 minutes after the deadline, then you have used your 1 free day. If you then turn in homework 2 about 5 minutes after the deadline, you will lose 10 points (because you have used two extension days, one for HW 1 and one for HW2). If you then turn in homework 3 about 5 minutes after the deadline, you will lose 25 points. If you then turn in homework 4 about 5 minutes after the deadline, you will lose 50 points! (That's almost the value of a homework.)
Note that under this policy, there will be no extensions given for
common scenarios including
interviews, conferences, minor illnesses, etc.
(There may be extensions for any
of the reasons discussed below including grief, etc.)
You are expected to manage your time.
Policy 3: (My preference) Except as discussed below, and or by prior arrangement, missing or late work will be counted as a zero.
Policy 4
Your HW grade would then be computed by the formula:
min(your correct points + 100,
your total meaningfully attempted points)
/ total homework points
Example: You tried on every problem, but they were hard. So you got around 75% of the homework points (usually around 600). But because you attempted everything, we'd give you (0.75*600 + 100)/600 = 92% instead.
We used this policy in classes in 2020, 2021, and 2022. The idea is to take stress off of you and encourage you to start early and keep working.
Collaboration on homework is allowed and indeed encouraged.
This is a hard class!
The final assignments must
contain a list of all collaborators. However, students must
prepare solutions individually. As an example of the ideal
scenario, the following situation is permissible:
A group of students meets to develop the solution to a problem on a white board. Each student records individual notes from this problem solving meeting. All students then prepare solutions individually and without further collaboration. These solutions list the names of all members in the initial group.
The final assignments must contain a list of all collaborators, regardless of if they are in the class or not. Failure to list collaborators will result in a zero on any homework, you must write ``I did not collaborate with anyone on this homework'' if you worked on the homework entirely alone.
Examples of collaborations that are not allowed include, but are not limited to:
Collaboration on the project is not encouraged, but students (you!)
should feel free to make a case if you think it's a good idea.
Be prepared to justify why collaboration will result in a better
project.
The assignments will involve producing computer codes. These need to be documented and written in accordance with best software engineering practices. Failure to follow this advice may result in solutions receiving zero points. Moreover, these should be prepared individually. Groups may discuss implementation strategies, algorithms, and approaches; but codes, like written homework solutions, must be prepared separately.
Debugging
What to do about debugging? That's right, you've gotten the ideas down. You think you have the algorithm right, you coded it. And yet, it still doesn't work. But you can't ask a friend because you can't share code, right? Here is what you should do. Spend 30 minutes working with that code to try and make it work. Write down what you did. If, after that, it still doesn't work. Then spend 15 minutes explaining what your problem is to a friend without looking at the code.
The anticipated grade ranges are:
These may be adjusted downward by up to 10% to achieve a reasonable grade distribution. They also may be minor upward adjustments.
Please do not come to class if - you know you have COVID or influenza or any other respiratory disease - you have a fever - you have a bad cough or extremely runny nose
Please do wear a mask if you choose to come class in any of the scenarios above. Masks work extremely well for source control.
It is my intention to post video recordings of the lectures so you will be able to see the material.
Behavior consistent with cheating, copying, and academic dishonesty is not tolerated. Depending on the severity, this may result in a zero score on the assignment or exam, and could result in a failing grade for the class.
Academic integrity is one of the highest values that Purdue University holds. Individuals are encouraged to alert university officials to potential breaches of this value by either emailing integrity@purdue.edu or by calling 765-494-8778. While information may be submitted anonymously, the more information that is submitted provides the greatest opportunity for the university to investigate the concern.
Purdue prohibits "dishonesty in connection with any University activity. Cheating, plagiarism, or knowingly furnishing false information to the University are examples of dishonesty." (Part 5, Section III-B-2-a, University Regulations) Furthermore, the University Senate has stipulated that "the commitment of acts of cheating, lying, and deceit in any of their diverse forms (such as the use of substitutes for taking examinations, the use of illegal cribs, plagiarism, and copying during examinations) is dishonest and must not be tolerated. Moreover, knowingly to aid and abet, directly or indirectly, other parties in committing dishonest acts is in itself dishonest." (University Senate Document 72-18, December 15, 1972)
You are expected to read both Purdue's guide to academic integrety and Prof. Gene's Spafford's guide as well. You are responsible for understanding their contents and how it applies to this class.
The course materials (homeworks, slides, lecture notes, etc.) are materials that bear my copyright. These materials may not be posted, shared, redistributed to others who are not registered for this class without my express written permission.
Also, the notes you take in class are "considered to be 'derivative works' of the instructor's presentations and materials, and they are thus subject to the instructor's copyright in such presentations and materials." As such, they also cannot be sold or bartered without my express written permission.
Students are expected to be present for every meeting of the classes in which they are enrolled. Only the instructor can excuse a student from a course requirement or responsibility. When conflicts or absences can be anticipated, such as for many University sponsored activities and religious observations, the student should inform the instructor of the situation as far in advance as possible. For unanticipated or emergency absences when advance notification to an instructor is not possible, the student should contact the instructor as soon as possible by email, or by contacting the main office that offers the course. When the student is unable to make direct contact with the instructor and is unable to leave word with the instructor's department because of circumstances beyond the student's control, and in cases of bereavement, the student or the student's representative should contact the Office of the Dean of Students.
Purdue University recognizes that a time of bereavement is very difficult for a student. The University therefore provides the following rights to students facing the loss of a family member through the Grief Absence Policy for Students (GAPS). GAPS Policy: Students will be excused for funeral leave and given the opportunity to earn equivalent credit and to demonstrate evidence of meeting the learning outcomes for misses assignments or assessments in the event of the death of a member of the student's family.
Purdue University is committed to providing a safe and secure campus environment for members of the university community. Purdue strives to create an educational environment for students and a work environment for employees that promote educational and career goals. Violent Behavior impedes such goals. Therefore, Violent Behavior is prohibited in or on any University Facility or while participating in any university activity.
Purdue University is required to respond to the needs of the students with disabilities as outlined in both the Rehabilitation Act of 1973 and the Americans with Disabilities Act of 1990 through the provision of auxiliary aids and services that allow a student with a disability to fully access and participate in the programs, services, and activities at Purdue University. If you have a disability that requires special academic accommodation, please make an appointment to speak with me within the first three (3) weeks of the semester in order to discuss any adjustments. It is important that we talk about this at the beginning of the semester. It is the student's responsibility to notify the Disability Resource Center (http://www.purdue.edu/drc) of an impairment/condition that may require accommodations and/or classroom modifications.
In the event of a major campus emergency, course requirements, deadlines and grading percentages are subject to changes that may be necessitated by a revised semester calendar or other circumstances beyond the instructor’s control. Relevant changes to this course will be posted onto the course website or can be obtained by contacting the instructors or TAs via email. You are expected to read your @purdue.edu email on a frequent basis.
Emergency notification procedures are based on a simple concept:
if you hear a alarm inside, proceed outside.
if you hear a siren outside, proceed inside.
Indoor Fire Alarms are mean to stop class or research and immediately evacuate the building. Proceed to your Emergency Assembly Area away from building doors. Remain outside until police, fire, or other emergency response personnel provide additional guidance or tell you it is safe to leave.
All Hazards Outdoor Emergency Warning sirens mean to immediately seek shelter (Shelter in Place) in a safe location within the closest building. "Shelter in place" means seeking immediate shelter inside a building or University residence. This course of action may need to be taken during a tornado, a civil disturbance including a shooting or release of hazardous materials in the outside air. Once safely inside, find out more details about the emergency. Remain in place until police, fire, or other emergency response personnel provide additional guidance or tell you it is safe to leave.
In both cases, you should seek additional clarifying information by all means possible: Purdue Home page, email alert, TV, radio, etc. Review the Purdue Emergency Warning Notification System multi-communication layers at http://www.purdue.edu/ehps/emergency_preparedness/warning-system.html
Emergency Response Procedures https://www.purdue.edu/emergency_preparedness/flipchart/index.html
Please review the evacuation routes, exit points, emergency assembly area and shelter in place procedures and locations for our building.
Video resources is a 20-minute active shooter awareness video that illustrates what to look for and how to prepare and react to this type of incident. See http://www.purdue.edu/securePurdue/news/2010/emergency-preparedness-shots-fired-on-campus-video.cfm
Purdue University is committed to advancing the mental health and well-being of its students. If you or someone you know is feeling overwhelmed, depressed, and/or in need of support, services are available. For help, such individuals should contact Counseling and Psychological Services (CAPS) at (765)494-6995 and http://www.purdue.edu/caps/ during and after hours, on weekends and holidays, or by going to the CAPS office of the second floor of the Purdue University Student Health Center (PUSH) during business hours.
Purdue University is committed to maintaining a community which recognizes and values the inherent worth and dignity of every person; fosters tolerance, sensitivity, understanding, and mutual respect among its members; and encourages each individual to strive to reach his or her own potential. In pursuit of its goal of academic excellence, the University seeks to develop and nurture diversity. The University believes that diversity among its many members strengthens the institution, stimulates creativity, promotes the exchange of ideas, and enriches campus life.
Purdue University prohibits discrimination against any member of the University community on the basis of race, religion, color, sex, age, national origin or ancestry, marital status, parental status, sexual orientation, disability, or status as a veteran. The University will conduct its programs, services and activities consistent with applicable federal, state and local laws, regulations and orders and in conformance with the procedures and limitations as set forth in Executive Memorandum No. D-1, which provides specific contractual rights and remedies.
A tentative list of lectures follows. This list may evolve throughout the course. See the web-page for an up-to-date list of lectures, under the "readings" section.
Midterm
Post-midterm is a slew of topics. This all builds on the tolls above.
David (your instructor) has a few planned absenses this term. We will hold class as usual with another instructor, your TA, or a video lecture.
If we need to reschedule additional classes, we will do so on an as-needed basis. Our plan is to use video lectures to supplement for any missing class periods.
This syllabus is subject to change. Updates will be posted on the course website and announced via email.