Parameter to suppress gaps

Started by victorcapel, May 24, 2023, 10:37:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

#30
Hello Victor,

I just examined the TODO file. I saw that for your question there is this item (with my words): Add the constraints teachers/students min gaps between building changes per real day and/or the constraints teachers/students min gaps between ordered pair of activity tags per real day.

As I see above, I made for you a custom version with a new feature. I am thinking of implementing some new constraints in the official FET. Which of them would interest you? One (which?) or both, or maybe none?

Will you help me test, if I do them?

victorcapel

Hello Liviu,

In my point of view both constraints could be include in official FET, but it needs to be a separate option, because in the version you created for me, when you set the restriction for min gaps between tags, it automatically generates the constraints per real day; In my case, that is what I needed, but It is a specific case.

Another suggestion, You could create a constraint that set the max gaps between building changes per real day and the constraints teachers/students min gaps between ordered pair of activity tags per real day.

This way, we can set a closed interval for swaps, avoiding a too long gap between morning and afternoon classes, and preventing the teacher from having idle periods.

What is your opinion?

I could help you with the test, for sure!

Liviu Lalescu

Dear Victor,

Do you mean max gaps between ordered?

I meant adding new constraints, with "per real day" instead of "per day".

I thought about it. I am not sure how useful they would be to other users. But I'll consider them for addition, maybe in some new version.

Unfortunately, max gaps is impossible to implement perfectly. There were also other users requesting this, but I couldn't do it.

I could try for you some coding tricks or coding it not perfectly, if it works on your file, for these max gaps.

Oh... just crossed my mind: you have teachers/students max gaps per real day. Isn't this working?

victorcapel

Dear Liviu,

That's right!

I think it makes a lot of sense to have this option of a max gap between tags per real day, especially for buildings with long distances.

It's sad not being able to add a max gaps between gaps.

No, I have max gaps per day and per week.

Liviu Lalescu

Hmm, Victor, I am not sure I understand correctly. In the Mornings-Afternoons mode you have the constraints teachers/students max gaps per real day, you only need to enable it from Settings.

But if this does not work, if you show me an example of old timetable I could try to make a further customization to try to simulate max gaps between ordered pair of activity tag (implemented as a nasty hack, but it might work).

I am not sure I understand correctly, you just want max gaps per real day or max gaps between ordered pair of activity tags per real day?

Liviu Lalescu

Quote from: victorcapel on August 11, 2023, 08:12:50 PMWe sent 2 donations, one of 200 and another of 300 euros, sorry for the delay, but the the bureaucratic process within the company took a bit of time.

Hi, Victor,

I am sorry, but these donations still did not reach me. Could you check, please?

victorcapel

Quote from: Liviu Lalescu on August 23, 2023, 10:22:27 AMHmm, Victor, I am not sure I understand correctly. In the Mornings-Afternoons mode you have the constraints teachers/students max gaps per real day, you only need to enable it from Settings.

But if this does not work, if you show me an example of old timetable I could try to make a further customization to try to simulate max gaps between ordered pair of activity tag (implemented as a nasty hack, but it might work).

I am not sure I understand correctly, you just want max gaps per real day or max gaps between ordered pair of activity tags per real day?


Sorry for the misunderstanding.

In my version of FET, it's working perfectly.

In my version, when the max gaps between ordered pairs of activity tags are added, it's automatically added for real days.


victorcapel

Quote from: Liviu Lalescu on August 25, 2023, 09:19:59 PM
Quote from: victorcapel on August 11, 2023, 08:12:50 PMWe sent 2 donations, one of 200 and another of 300 euros, sorry for the delay, but the the bureaucratic process within the company took a bit of time.

Hi, Victor,

I am sorry, but these donations still did not reach me. Could you check, please?


Hi, Liviu.

I will send you the receipts I received from the company by email.

Liviu Lalescu

Quote from: victorcapel on August 29, 2023, 12:17:33 PMHi, Liviu.

I will send you the receipts I received from the company by email.

Thank you! We'll talk by email about this.

victorcapel

Hi Liviu,

I'm having issues with an error in FET, do you know what it might be?


Liviu Lalescu

Hi, Victor,

Are you working with your custom version? I suppose so.

In a ConstraintTeacherMinGapsBetweenOrderedPairOfActivityTags you have an inexistent second activity tag.

Please let me know.

victorcapel

Hi, Liviu.

Yes, I'm working with my custom version.

I will check my activities tag.

Thank you!

Liviu Lalescu

Dear Victor,

In recent versions of FET (the current version is FET-6.18.1, and the feature was introduced in FET-6.17.0), there is a constraint of type teacher(s)/students (set) max building changes per real day in hourly interval. I hope this solves your problem, without the need for a customization, so that you can always use the latest version of the official FET.

Indeed, suppose you have hours in a FET (half) day: 8, 9, 10, 11. Then you can add max 0 building changes in real day interval: [11 morning, 9 afternoon).

Please let me know what you think.

I attach a very small sample file.

victorcapel

Dear Liviu.

I tried to use the new version, but the problem is that I need a minimum interval, without specifying a start and end interval.

So, between the tags col-ar-m and col-vl-t, I need a minimum interval of 3 for morning, afternoon and between morning and afternoon.

Liviu Lalescu

Hello, Victor,

Could you send me your input file, as a reminder for me?

I think, as I remember when I wrote you the above things, that my trick is useful if you want at least 1 FET hour gap between building/room changes between morning and afternoon of the same day.

If you want min 3 FET hour gaps between building/room changes between morning and afternoon of the same day, I think the trick won't work :(

If you want, I could update your custom version to the latest FET.