FET Forum

FET Support (English) => Get Help => Topic started by: reesa on September 29, 2010, 05:37:26 AM

Title: Gap for 2 subjects and 2 teacher in a day
Post by: reesa on September 29, 2010, 05:37:26 AM
On previous post http://lalescu.ro/liviu/fet/forum/index.php?topic=351.0, was great solutions.

I have subjects :S1(2+2) S2(2+2), teacher : T1,T2. And half of the subjects should be appear in odd and even week for certain classes, example :
odd : s1(2)->t1,s1(2)->t1,s2(2)->t2
even:s1(2)->t1,s2(2)->t2,s2(2)->t2 .

According to previous solution post, to set the activities, i should create new subject :
S3(2)=S1 or S2

so i create activities
a1->s1(2)->t1
a2->s2(2)->t2
a3->s3(2)->t1+t2

then the result is fine, no overlapping in subjects or teachers. But unfortunately, the subjects is in consecutive order, which is not allowed, like
class/time 1  2  3   4  5  6  7
IX          s1 s1 s3 s3
or
IX                  s3 s3 s2 s2

How to set the gap for 2 subjects or gap for 2 activities 2 subjects ? so the result at least:
class/time 1  2  3   4  5  6  7
1. IX          s1 s1     s3 s3
or
2. IX                  s3 s3    s2 s2
or
3. (s1 ,s3) or (s2,s3) not same day.

Thanks,

Reesa
Title: Re: Gap for 2 subjects and 2 teacher in a day
Post by: Liviu Lalescu on September 29, 2010, 06:07:34 AM
Constraint min gaps between a set of activities does exactly that.
Title: Re: Gap for 2 subjects and 2 teacher in a day
Post by: reesa on September 29, 2010, 09:00:01 AM
Solved
wow... great!!!... it worked

i thaught a set activity only for a subject can be extracted to several activities. But the content subject of set activities can be modified via subactivities menu then.
So from 3 set activities of subject
  a1 : S1(2)->t1,  a2 : S2(2)->t2,  a3 : S3(2)->t1+t2

change into  only set activity of 3 subjects
  a1 : S1(2)->t2, S3(2)->t1+t2, s2(2)->t2

Very simple and no need set consecutive. And i tried 10times already and  worked perfect and no consecutive activities with same subjects in all class.
But when i exported to csv, inside of activities.csv  list the main set activities not modified subactivities, but it was alright.

Thanks for your help.

reesa