FET Forum

FET Support (English) => General Stuff => Topic started by: nelsonching on October 05, 2015, 08:32:42 AM

Title: number of student per day
Post by: 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
Title: Re: number of student per day
Post by: 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.
Title: Re: number of student per day
Post by: 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.
Title: Re: number of student per day
Post by: nelsonching on October 05, 2015, 10:08:04 AM
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

Title: Re: number of student per day
Post by: nelsonching on October 05, 2015, 10:10:44 AM
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.
Title: Re: number of student per day
Post by: 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.
Title: Re: number of student per day
Post by: 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.
Title: Re: number of student per day
Post by: nelsonching on October 05, 2015, 10:39:28 AM
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
Title: Re: number of student per day
Post by: nelsonching on October 07, 2015, 10:21:26 AM
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

Title: Re: number of student per day
Post by: Liviu Lalescu on October 07, 2015, 10:51:52 AM
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.