Dear Sir:
5 days, 4 hours at AM, 4 hours at PM.
English have 5 hours to teach.
Constraint I: 2 hours must be consecutive, but can not consecutive at 2nd AM hour and 3rd AM hour.
Constraint II: 3 hours must be taught at AM.
I have already read the User Guide, but I didn't find the method to deal with these two constraints.
Looking forward to you help.
2 variants:
1st is not exactly what you request, but i think it might be also fine.
2nd is what you request, but it is a bit more work and generating might be very slow.
1st variant:
fet -> data -> activities -> add:
split into 4 parts.
1st must increase duration up to 2.
set 100% weight.
fet -> data -> time constraints -> activities -> a set of sub-activities has a set of preferred starting times
select subject English. Keep component number one (that is the sub-activity with duration 2)
disable 2nd hour
the second constraint isn't exactly possible.
i suggest to do:
fet -> data -> time constraints -> activities -> a set of sub-activities has a set of preferred starting times
select subject English. Choose component number two (that is the sub-activity with duration 1)
disable PM hours
so you already have got at least 1 at AM.
now maybe do it similar with component number 3 (and maybe also 4).
Or also disable AM with component number 1.
----------------
2nd Variant:
fet -> data -> activities -> add:
split into 5 parts.
set 100% weight.
search the min day constraint at fet -> data -> time constraints -> activities -> min days between a set of activities
modify the automatic added constraint. remove the last sub-activity.
fet -> data -> time constraints -> activities -> 2 activities are consecutive
add 2 sub-activities: the 1st and the last (5th) sub-activity.
so now you have again in fact 2+1+1+1, but this time we can count them better for your second request.
so again:
fet -> data -> time constraints -> activities -> a set of sub-activities has a set of preferred starting times
select subject English. Keep component number one (that is the sub-activity with duration 2)
disable 2nd hour
fet -> data -> time constraints -> a set of activities occupies max time slots from a selection
add all sub-activities, select all PM hours and increase the max occupied spinbox up to 2.
Thank you so mach for your suggest!
"A set of activities occupies max time slots from selection" is really what I need.
By the way, Your algorithm is extremely excellent!