Maximum number of an activity in a day

Started by m_kaleia, November 17, 2011, 03:13:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m_kaleia

Hello

I want to ask if I have an activity such as "Math" and it has 5 period a week ,

How to set the maximum periods per day..

For example I want to set that in one day maximum math period is two ..

How to do that please ?

thanks alot

Liviu Lalescu

Teacher(s)/students (set) activity tag max hours daily (activate it, firstly).

Or min days between activities (it is related to what you want, but not perfectly what you want).

m_kaleia

Quote from: Liviu Lalescu on November 17, 2011, 04:32:58 PM
Teacher(s)/students (set) activity tag max hours daily (activate it, firstly).

Or min days between activities (it is related to what you want, but not perfectly what you want).

Thanks but it doesn't do what I want exactly..

I don't want it for a teacher or a students ... I want the constraint for an activity (max period of one subject per day)..

So there is no constraint like that ?!..


Liviu Lalescu

Quote from: m_kaleia on November 18, 2011, 03:21:20 PM
Quote from: Liviu Lalescu on November 17, 2011, 04:32:58 PM
Teacher(s)/students (set) activity tag max hours daily (activate it, firstly).

Or min days between activities (it is related to what you want, but not perfectly what you want).

Thanks but it doesn't do what I want exactly..

I don't want it for a teacher or a students ... I want the constraint for an activity (max period of one subject per day)..

So there is no constraint like that ?!..

I meant: add activity tag "Math - max 2 hours daily" for each Math activity, then activity tag max hours daily - but yes, only for teachers or for students.

If you really want for activities - then use activities occupy max time slots from selection, for each set of activities add n_days_per_week constraints, select all slots of each day, max occupied = 2.

m_kaleia

I did what you told me

select all day and put max occupid = 2 (and of course select the math's set  activities ) ,

but when i want to generate the table it didn't generated and stuck on math activity. !!

have I did some thing wrong ?!


Liviu Lalescu

#5
You did correctly what you describe. But I need more details or even your file to know. Maybe it is impossible what you want.

By select all day, I think you mean a single day, 5 constraints (one constraint, select all slots from Monday, another constraint, select all slots from Tuesday, ..., last constraint, select all slots from Friday).

m_kaleia

Thanks you ..

my file is in the attacment .. but the subject is in Arabic language.


Liviu Lalescu

Quote from: m_kaleia on November 18, 2011, 08:00:09 PM
Thanks you ..

my file is in the attacment .. but the subject is in Arabic language.

I corrected. Attached. You understood incorrectly the constraints activities occupy max time slots.

m_kaleia

Thanks a lot..

That is what I want exactly.