number of student per day

Started by nelsonching, October 05, 2015, 08:32:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nelsonching

Dear all,

here is my problem:
i would like to have a control of number of student per day in the campus,
i world like to know is the fet program support this kind of constraint.
if not, i world like to add option in the program with qt.
and which file do i suppose to edit in the source code?

thank you
nelson

Volker Dirr

#1
You can controll that indirectly over the rooms. So just add rooms constraints to each activity. Then add as many rooms as needed, care about room capacity so you get the max total wanted number of students.
If you want to code yourself then please read the documentation and have a look at generate.cpp.

Liviu Lalescu

Quote from: nelsonching on October 05, 2015, 08:32:42 AM
Dear all,

here is my problem:
i would like to have a control of number of student per day in the campus,
i world like to know is the fet program support this kind of constraint.
if not, i world like to add option in the program with qt.
and which file do i suppose to edit in the source code?

thank you
nelson

It is difficult to say. I need an example, more details, to be sure I understand correctly your request.

nelsonching

Quote from: Liviu Lalescu on October 05, 2015, 09:50:30 AM
Quote from: nelsonching on October 05, 2015, 08:32:42 AM
Dear all,

here is my problem:
i would like to have a control of number of student per day in the campus,
i world like to know is the fet program support this kind of constraint.
if not, i world like to add option in the program with qt.
and which file do i suppose to edit in the source code?

thank you
nelson

It is difficult to say. I need an example, more details, to be sure I understand correctly your request.

Thanks Liviu,

in my case, i have to control  overall(All subject, All Level, All class) number of students come to the campus during the same session. because the campus facility cannot afford too many student come in the same time.

e.g. monday 9:30-11:30 not over 2200 student

Thank you
Nelson


nelsonching

Quote from: Volker Dirr on October 05, 2015, 09:18:39 AM
You can controll that indirectly over the rooms. So just add rooms constraints to each activity. Then add as many rooms as needed, care about room capacity so you get the max total wanted number of students.
If you want to code yourself then please read the documentation and have a look at generate.cpp.

Thanks Volker,
BTW do you know what is the differences between src and src-cl in fet.pro project.

Liviu Lalescu

Quote from: nelsonching on October 05, 2015, 10:08:04 AM
Thanks Liviu,

in my case, i have to control  overall(All subject, All Level, All class) number of students come to the campus during the same session. because the campus facility cannot afford too many student come in the same time.

e.g. monday 9:30-11:30 not over 2200 student

Thank you
Nelson

It is difficult to code that yourself.

Please see the constraint activities max simultaneous in selected time slots. It might be next to what you need. Select all activities, select time slot Monday 9:30-11:30, select a maximum of activities allowed in this slot. Or select more slots.

Volker Dirr

src: is for fet. so with GUI.
src-cl: is for fet-cl. so command line only without GUI.

nelsonching

Quote from: Volker Dirr on October 05, 2015, 10:31:14 AM
src: is for fet. so with GUI.
src-cl: is for fet-cl. so command line only without GUI.

get it, thank you for your explanation

nelsonching

Quote from: Liviu Lalescu on October 05, 2015, 10:30:42 AM
Quote from: nelsonching on October 05, 2015, 10:08:04 AM
Thanks Liviu,

in my case, i have to control  overall(All subject, All Level, All class) number of students come to the campus during the same session. because the campus facility cannot afford too many student come in the same time.

e.g. monday 9:30-11:30 not over 2200 student

Thank you
Nelson

It is difficult to code that yourself.

Please see the constraint activities max simultaneous in selected time slots. It might be next to what you need. Select all activities, select time slot Monday 9:30-11:30, select a maximum of activities allowed in this slot. Or select more slots.

Dear Liviu,

i world like to modify the basic compulsory constraints(space) function, to disable (- rooms assigned to more than one activity simultaneously) option by re-code the program.
any suggestion or advice to do this?

thankyou


Liviu Lalescu

Quote from: nelsonching on October 07, 2015, 10:21:26 AM
Dear Liviu,

i world like to modify the basic compulsory constraints(space) function, to disable (- rooms assigned to more than one activity simultaneously) option by re-code the program.
any suggestion or advice to do this?

thankyou

I think I did this in the custom version for US high-schools (see http://lalescu.ro/liviu/fet/custom.html ). I am not sure how long it took me.

You can compare side-by-side (with KDiff3 for instance) the official and custom generate.cpp file.

It is not too easy. I will try to help with advice.