Max Hours for a room(s)

Started by Benahmed Abdelkrim, May 09, 2020, 11:25:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

#45
Dear Benahmed,

Forgive me, I am a bit tired of working hard. But I thought of your suggestion and really consider it to be very peculiar. Why normal users would constrain each teacher to be in a different room each time? Yes, you said that for exams in an approach like yours, but it is not optimal (as I told you, the room max occupied slots trick you devised is not optimal and a constraint cannot be added for this).

Also, the constraint you suggest (not same rooms for teachers) is not implementable efficiently in FET.

But I propose you to devise for you a custom version, having included this constraint, so I won't need to design the interface, just the generate code. Let me know if this would be useful to you.

Benahmed Abdelkrim

Quote from: Liviu Lalescu on May 15, 2020, 03:05:23 PM
Dear Benahmed,
....
Also, the constraint you suggest (not same rooms for teachers) is not implementable fast in FET.

But I propose you to devise for you a custom version, having included this constraint, so I won't need to design the interface, just the generate code. Let me know if this would be useful to you.

"not same rooms for teachers": good name

Well, it seems that it is not possible or feasible at the present time to wait for the days to come.
Thus, editing a customized version of the program will be useful and beneficial for us and everyone who needs it.

Thank you so much, dear Liviu.
B.A/krim

Liviu Lalescu

Actually, the constraint will not be named. It will be implicit in the program.

How do you suggest to name this custom version?

It will take a few days, because I am now working on some things on the official version.

Benahmed Abdelkrim

#48
Quote from: Liviu Lalescu on May 15, 2020, 03:46:38 PM
Actually, the constraint will not be named. It will be implicit in the program.

How do you suggest to name this custom version?

It will take a few days, because I am now working on some things on the official version.

Thank you.
I suggest the following name:
Exclusive Virtual Room... the abbreviated name is: EVR

This means that the program will exclusively assign non repeated elements of virtual room to a real room(or a real teacher or any other data the user wants to define their outputs)
The uses of this feature are multiple and wide and cannot be limited to this example only.
B.A/krim

Liviu Lalescu

#49
I did it, please get it from https://lalescu.ro/liviu/fet/download/custom/nsrt/

Hmm, I just saw some cases in which the constraint does not work - I am working on it.

Benahmed Abdelkrim

very acceptable solution except for 2 real teachers: T13 and T36  for my genaration
  ... good works thank you. :)
but the name is very long!... can we choose a short name as mentioned above?
B.A/krim

Liviu Lalescu

I prefer a more explanatory name. You can rename the directory.

I don't know why this bug appears - I am trying.

Benahmed Abdelkrim

Quote from: Liviu Lalescu on May 16, 2020, 04:05:09 PM
I prefer a more explanatory name. You can rename the directory.

.....
ok but we can choose a short name:
NSRT: which means: Not Same Room Teachers.
what do you think?
B.A/krim

Liviu Lalescu


Benahmed Abdelkrim

I checked this. And the repetition has disappeared ..Thank you very much, Dear Liviu.
We are very grateful for this work you have done.
We also apologize for the fatigue that we have caused.
This custom version  will be very useful in many cases.
We also ask God to protect you and take care of you and make you a path to paradise.
B.A/krim

Liviu Lalescu

You are welcome, dear Benahmed, and thank you as well!  :)

I must confess I don't like this version, because it is very weird to switch teachers with rooms and the new constraint is not perfectly efficient, and virtual rooms in this case is also not perfectly efficient. But if it works it is good.

Also, I didn't think it will be needed by more people, but if it does so, it is great.

Benahmed Abdelkrim

The idea worked great. This program is really flexible and can handle many situations. Congratulations, Dear Liviu, for this program, which has a lot of custom version, which provide solutions to many cases that are difficult for many programs ...but FET is really a great application. thank you so much!!!  :)
B.A/krim

Liviu Lalescu


Liviu Lalescu

#58
Please let me know if the program cannot solve or if it produces a wrong solution.

Because I did not make it perfect. It might work only if the real rooms are used for activities without teachers or more than 1 teacher.

Liviu Lalescu

Dear Benahmed,

I tried to implement room max available slots, hard coded in the program, to 5. I attach the result. It solves much faster now, instant. The only thing is that you cannot add the constraints for gaps like you added.

Please tell me if this result is good. I can try to help you, if all the activities have duration 1 and if all real rooms in this are in a virtual room, by making an option, max occupied slots, selectable from the program. The advantage is that the program is much faster and I like it better.