1) Add an activity tag for each activity and then use space constraint "an activity tag has preferred rooms"
2) use the time constraint "Max gaps per week for all teachers" set it to "0". You might want to use this in combination with "Max span per day for all teachers". So that the no of teaching hours for teacher will be almost uniform for all days without any gap
3) Use the time constraint Activities -> set of activities has a preferred starting times and then select "teacher-1", and mark the allowed and not allowed times.
2) use the time constraint "Max gaps per week for all teachers" set it to "0". You might want to use this in combination with "Max span per day for all teachers". So that the no of teaching hours for teacher will be almost uniform for all days without any gap
3) Use the time constraint Activities -> set of activities has a preferred starting times and then select "teacher-1", and mark the allowed and not allowed times.