# Scheduling - integer programming question [desperate]

• May 26th 2012, 11:37 PM
linalg123
Scheduling - integer programming question [desperate]
Question:
Vicky is attending a summer school where she must study four units. She must do a one-hour lecture for each of the units every day. There are 6 one hour time slots in a day. As there are way too many students, repeating lectures for each unit is offered at every time slot of the day and are taught by different lecturers. Vicky’s decision on the class of a unit she likes to take is purely influenced by how much the lecturer looks like Keanu Reeves.
[Hint: the decision variables should help you decide which class Vicky will take for each unit—i.e., Vicky to take Class i of Unit k. Furthermore, the score for how much the lecturer for Class i of Unit k looks like Keanu Reeves can be represented by the score $\displaystyle p_{ik}$.]

a. Now, formulate an integer programming model to help Vicky choose
her classes that maximize the total Keanu Reeves lookalike score.
b. Derive a constraint so that Vicky never has to do more than two
consecutive classes without a break.
c. Modify the objective function, if Vicky’s objective is now to start her
day as late as possible.

Part A.Let $\displaystyle x_{ik}$ = 1 if she take class i of unit k, otherwise 0.
max z = $\displaystyle \sum x_{ik}p_{ik} , k=1,2,3,4. , i = 1,2,3,4,5,6.$

s.t $\displaystyle \sum x_{ik} = 1 , k=1,2,3,4$
$\displaystyle x_{ik} \in {0,1}, i = 1,2,3,4,5,6 , k=1,2,3,4$

Part B. $\displaystyle x_{i} + x_{i+1} \leq M(1-y)$
and $\displaystyle x_{i+2} \leq My$
where $\displaystyle y \in {0,1} , M is a large integer$

Part C.Unfortunately i can't think of how to change the objective function for part c.
I'm assuming it has something to do with the 'i' values as these are relating to the time of the class but i can't figure out how to translate that into an answer.
Any help would be greatly appreciated.
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "http://mathhelpforum.com/discrete-math/199323-scheduling-integer-programming-question-desperate-print.html", "fetch_time": 1524582992000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2018-17/segments/1524125946721.87/warc/CC-MAIN-20180424135408-20180424155408-00127.warc.gz", "warc_record_offset": 203290970, "warc_record_length": 3176, "token_count": 550, "char_count": 1938, "score": 3.875, "int_score": 4, "crawl": "CC-MAIN-2018-17", "snapshot_type": "latest", "language": "en", "language_score": 0.9242132306098938, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00025-of-00064.parquet"}