diff --git a/docs/tutorial/index.rst b/docs/tutorial/index.rst index e1984f7..8c8dcc5 100644 --- a/docs/tutorial/index.rst +++ b/docs/tutorial/index.rst @@ -124,7 +124,6 @@ event:: Workshop 1 at 16-Sep-2016 13:00 in Small City tour at 16-Sep-2016 13:00 in Outside - We see that all the events are scheduled in appropriate rooms (as indicated by the unavailability attribute for the events). Also we have that :code:`Talk 1` doesn't clash with :code:`Workshop 1`. @@ -178,11 +177,11 @@ Coping with new information This is fantastic! Our schedule has now been published and everyone is excited about the conference. However, as can often happen, one of the speakers now informs us of a particular new constraints. For example, the speaker for -:code:`Talk 11` is unable to speak on the second day. +:code:`Talk 11` is unable to speak on the first day. We can enter this new constraint:: - >>> events[10].add_unavailability(slots[9:]) + >>> events[10].add_unavailability(*slots[9:]) We can now solve the problem one more time from scratch just as before:: @@ -238,6 +237,7 @@ old schedule:: City tour at 16-Sep-2016 13:00 in Outside + Spotting the Changes -------------------- It can be a little difficult to spot what has changed when we compute a new schedule and so @@ -345,10 +345,10 @@ As you can see, we have set all unavailabilities to be empty however has informed us that they are not present on the first day. We can include these constraints:: - >>> events[0].add_unavailability(chair_slots[4]) - >>> events[1].add_unavailability(chair_slots[4]) - >>> events[2].add_unavailability(chair_slots[4:]) - >>> events[3].add_unavailability(chair_slots[4:]) + >>> events[0].add_unavailability(*chair_slots[4]) + >>> events[1].add_unavailability(*chair_slots[4]) + >>> events[2].add_unavailability(*chair_slots[4:]) + >>> events[3].add_unavailability(*chair_slots[4:]) Finally, each chair cannot chair more than one session at a time:: @@ -371,6 +371,7 @@ Now let us get the chair schedule:: Chair A-1 chairing 16-Sep-2016 12:30 in Big Chair C-1 chairing 16-Sep-2016 12:30 in Small + Validating a schedule ---------------------