# Thread:

1. ## 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 $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.

My Answer:

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

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

Part B. $x_{i} + x_{i+1} \leq M(1-y)$
and $x_{i+2} \leq My$
where $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.
{"extraction_info": {"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": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 8, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.948219895362854, "perplexity_flag": "middle"}