suggestion_TiTiTo

Started by Benahmed Abdelkrim, June 22, 2016, 04:41:40 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Benahmed Abdelkrim

  Hello, 
   I have a suggestion if you allow; add a "use span" in window export time table.
this function once added, allows activities lasting two hours of taking two cells, instead of being divided as it is currently.
   when there is the table of empty rooms ?, I can not find it in TiTiTo.
B.A/krim

Volker Dirr

about "use span": ok. I wrote it on my TODO list, but I need a bit time for that. I am currently coding/adding other features.

Volker Dirr

about "empty rooms". if you need to select an other room, then you only need to double click on the room name in the substitution table. you will get a list of all free rooms then.

i didn't add a "free rooms" as html export yet. i am not sure if that is very useful:
problem:
maybe you have got computer lab. A teacher checks the "free rooms" table and see that the computer lab is empty. so it want to use it. that is no problem.
now an other teacher have got the same idea. so it checks the "free rooms" table and see that the computer lab is empty, but in fact that is not true. -> big problem.

so i highly suggest to other variants:
a) if a teacher want to swap rooms, then he must do it with TiTiTo or need to talk to the guy that use TiTiTo. He can swap the room and can see if the room is already used very easy.
b) print the rooms table and teacher need to write with a pen into the rooms table if it is used. so it won't happen that the room is occupied 2 times.

Benahmed Abdelkrim

#3
   Thank you so much; I think your latest suggestions; a) and b are very useful.  OK!...
B.A/krim

Volker Dirr

#4
ahh... i just read this topic again (after reading this answer http://lalescu.ro/liviu/fet/forum/index.php?topic=2600.msg13990#msg13990 )

i just see that i didn't read carefully.

You first request "use span" is "always" enabled by default. (I thought you want to disable it)
i guess you just saw a table where is the span wasn't used.

that might happen in a few situations:
a) if there are more then 1 activity in a cell. it is complicated to detect/code if it is possible or not. so maybe i will code that later, but i will code other stuff first.
b) if you used a min day constraint with less then 100%.

hmm... b) is easy to detect. i will code that.

Benahmed Abdelkrim

#5
 
Quote from: Volker Dirr on July 24, 2016, 10:08:41 AM
b) if you used a min day constraint with less then 100%.

hmm... b) is easy to detect. i will code that.

  for the second b), I think it is not necessary, leave it as it is better.  I think that is produced by FET. such activities are a real say a single activity lasting 2 hours.
I think the screenshot attached best describe the situation:
The first 1a), the cells of the table is unchanged, as produced by the application. the two cells that require a merger into a single cell is surrounded by a red line.
the second 2a), the merger is obtained by adding the html code: colspan = 2, in the "<td>" appropriate, manually!.
and not as I do currently; manually!
B.A/krim

Volker Dirr

#6
it isn't to difficult to care about problem "b". And it happen to my timetable a few times (since i have got some rare activities with min day constraint weight = 0%). So it is useful for them. i think i won't need much more then 1 day to code.

Volker Dirr

#7
Yes, the example you explained is one of the "difficult" examples "a". It is easy to see that as a human. But it is difficult to code. (because it mean i need to check if all activities which are together in that span/duration are always exactly the same. That isn't easy to check with an algorithm. i will rethink about it, but i fear it will be to complicated.)

It is maybe not to difficult for teachers, rooms and subgroups. But it will be much to complicated for groups and years timetable.

Benahmed Abdelkrim

Quote from: Volker Dirr on July 24, 2016, 05:07:07 PM
it isn't to difficult to care about problem "b". And it happen to my timetable a few times (since i have got some rare activities with min day constraint weight = 0%). So it is useful for them. i think i won't need much more then 1 day to code.
mrs . volker this activity is unrelated to the weight used . it has a two hours , and it is not divided(not split into data FET)
B.A/krim

Volker Dirr

#9
i know that.
i was referring to my explanation why i can't always use span. (i didn't know your problem at that time)

there are 2 problems. problem a and problem b.
i can handle problem b very easy in TiTiTo.

Sadly you have got an example with problem a. i might solve that for teachers, rooms and subgroups. but not for groups and years timetable. that will be too complicated.

Benahmed Abdelkrim

the problem b) do not really need a solution. the user does not need ...
but the problem a) is in need , especially with tables of students , teachers, and rooms.
B.A/krim

Volker Dirr

"b" is as strong needed as "a". i never have the "a" problem, since i use the students collision feature in TiTiTo. so i can place different roomS to the same students set. so i never use some starting times there or dummy roomS, since i can place several rooms to the same students.
but i have the "b" problem. i fixed that already. i can detect that now. tables look much better now. :-)
Sadly i can do that fix only in TiTiTo, not in FET. There are to many problems in FET (it might effect all constraints and it also will merge the activities and FET won't be able to split them anymore if you regenerate again.)

the "a" problem is very difficult, because there are a lot of situations where it is impossible to do that. while the subgroups, teachers and rooms timetable i think i can code that. i will start coding that now.
but for the years and groups timetable it is very complicated. maybe i will write a special test case that only test your special kind of problem, but i won't care about all problems.

for example if you have a year 5 with groups 5a, 5b and 5c.
2 activities with group 5a and 5b got a same starting time. but not group 5c.
now you place them into the years timetable. -> problem, because it is very difficult to detect all situations since you need to check the whole subgroups of year 5 is there is a problem; and there might be many of them. (for example the activity of 5c might have much larger duration and it might even start earlier or later then the other activities. it always might overlap with the same starting time activities of group 5a and 5b -> so a span in all that situations is impossible.

Similar problem to subgroups in a groups timetable.

Volker Dirr

#12
it is very complicated :-(

please check attached file.

i cared only about students table yet. i hope they are correct.
i added only 6 activities. 5 of them have duration 2. 1 has duration 3.
there are 3*2 same starting times.

as you can see i can use span sometimes if there are same duration.
but sometimes i can't do that; even it is so easy to see for a human. so as a human i can of course see that it is possible to use a span there. but it so difficult to code that.

i fear this is the best i can do. checking all the other stuff will be much too complicated.

i also don't like the subgroups_days_vertical timetable. because it look like 6a has only the first hour at day 1 and 6b has only the second hour at day 1. But that it not true! that are activities with duration 2. it is difficult to see that. i fear many guys will misunderstand that table.

what do you think about the attached solution?

Benahmed Abdelkrim

  thank you for your interest in the problem. I think this is a solution approached the problem. the solution requires few days, maybe a month,. perhaps with the invention of new codes, the solution will be easy to find ...
   maybe we should be content with a manual setting, as I do now, is making inject some HTML / CSS codes.
thank you very much  :)
B.A/krim

Volker Dirr

hmmm... sadly i added an other activity to group 6c this morning without any same starting time. now some of the tables are wrong again :-(
i need to think some more...