max different buildings

Started by Vũ Ngọc Thành, February 08, 2024, 04:29:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vũ Ngọc Thành

Hello LiViu
Many schools in Vietnam need to constraint  this
You can add this new constraint

Liviu Lalescu

Hello, Vu Ngoc Thanh,

Can't you use teachers/students max building changes per day/week?

Vũ Ngọc Thành

Many schools in Vietnam need changed after hour2

Vũ Ngọc Thành

Many schools in Vietnam need changed after hour2

Liviu Lalescu

Then I propose you two solutions:

1) Add a "Break" hour after the first two hours, and use max building changes per day = 1 and min gaps between building changes = 1,

or

2) Use the Mornings-Afternoons mode of FET, and use max building changes per day = 0. This will be for a FET day = half real day.

Vũ Ngọc Thành

Many schools in Vietnam   change after hour 2 and no change after hour 1 and no change after hour 3 and no change after hour 4 in morning or afternoon

Vũ Ngọc Thành

Many schools in Vietnam   change after hour 2 and no change after hour 1 and no change after hour 3 and no change after hour 4 in morning or afternoon. Illustrating images

Liviu Lalescu

#7
Exactly, in my post above I proposed you two solutions.

Are you using FET in the Mornings-Afternoons mode? How many hours per FET day?

How many hours per real day do you have? 5?

Liviu Lalescu

Hmm... I see. So you can't use my solution (2). But I hope you can use my solution (1):

1) Add a "Break" hour after the first two hours, and use max building changes per day = 1 and min gaps between building changes = 1. You will have 6 hours per FET (half) day, of which the 3rd is break (X, red).

I might leave now and come back in a couple of hours, I might not be able to answer soon.

Vũ Ngọc Thành

if Add a "Break" hour after the first two hours then All Teacher  do not teach 2 schools will not teach 2 consecutive hours in hour2 and hour3

Liviu Lalescu

I arrived short time ago.

Hmm... very ugly situation, indeed. I will think of this now. Please allow me a bit. It might be possible with some tricks. If not, maybe we could try to develop a custom version just to see how a customization would work. Would you be interested?

I will think now more thoroughly and answer hopefully soon.

Liviu Lalescu

Hello, Vu Ngoc Thanh,

I think I got the solution: a new constraint, teacher(s) max building changes per real day interval. You will add 4 constraints for your case (first interval is Morning1 to Morning3, then Morning3 to Afternoon1, then Afternoon1 to Afternoon3, then Afternoon3 to End_of_day). What do you say?

If you like it, I hope I will be able to begin tomorrow. I will let you know.

@Volker Dirr , please also tell me what you think about this. Also, let me know if you think of a better name for the constraint.


Liviu Lalescu

Great!

Do you think that in general I need to add also for students (not only in Vietnam, but internationally)?

Vũ Ngọc Thành

In Vietnam, this restriction is for teachers