Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Solved

Posted on 2011-04-21

Hi..

I'm looking for C# code to solve a scheduling problem were 100 people have signed up for 4 classes that only have 25 seats. How to fill the classes bases on first come first serve.

thx

I'm looking for C# code to solve a scheduling problem were 100 people have signed up for 4 classes that only have 25 seats. How to fill the classes bases on first come first serve.

thx

5 Comments

For a genetic algorithm, you need to have something to optimize. What are you optimizing here?

then at least one class must have at least 50 students.

if classes only have 25 seats, at least 25 of them must stand.

If you are trying to minimize the number of students standing,

then you only need to insure that all seats are filled.

Assumptions seem to include that all four classes are given once and that the four run concurrently... otherwise there is no known direction to go.

But if students "must" take two classes, then it doesn't fit with concurrent classes, and maybe not single sessions.

And if classes may be presented more than once or if they are presented at different times, the whole problem might be moot. All students might easily get all four classes.

Too much is either unknown or contradictory.

Tom

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Course of the Month16 days, 7 hours left to enroll

Join the community of 500,000 technology professionals and ask your questions.