473,587 Members | 2,504 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Simulated Annealing and timetables

Hi!

I'm study Industrial Enginering Informatics (second year) and we have to
write a a program that writes out HTML timetables of classes (school
classes, I mean ...).

First we have to read in the information:
* how many teachers are there?
* what subjects do teachers give?
* what are the specific classrooms ?
* are there specific hours that teachers wonna give lesson?
.... (and so on ...)

We have to solve this problem with the Simulated Annealing algorithm. But I
can't find a start to begin. We haven't got any information, so we have to
search it up on the internet.

Maybe there's someone who could give me a hint?

Many thnx!

Jochus
Jul 23 '05 #1
3 2926

"Jochus" <bl****@blabla. com> wrote in message
news:TP******** *************@p hobos.telenet-ops.be...
Hi!

I'm study Industrial Enginering Informatics (second year) and we have to
write a a program that writes out HTML timetables of classes (school
classes, I mean ...).

First we have to read in the information:
* how many teachers are there?
* what subjects do teachers give?
* what are the specific classrooms ?
* are there specific hours that teachers wonna give lesson?
... (and so on ...)

We have to solve this problem with the Simulated Annealing algorithm. But
I can't find a start to begin. We haven't got any information, so we have
to search it up on the internet.

Maybe there's someone who could give me a hint?


This here's a *language* forum, not an algorithm forum. You might try using
Google.

-Howard

Jul 23 '05 #2
Jochus wrote:
Hi!

I'm study Industrial Enginering Informatics (second year) and we have to
write a a program that writes out HTML timetables of classes (school
classes, I mean ...).

First we have to read in the information:
* how many teachers are there?
* what subjects do teachers give?
* what are the specific classrooms ?
* are there specific hours that teachers wonna give lesson?
... (and so on ...)

We have to solve this problem with the Simulated Annealing algorithm. But I
can't find a start to begin. We haven't got any information, so we have to
search it up on the internet.

Maybe there's someone who could give me a hint?

Many thnx!

Jochus


Here is just a start.
From your information:
1. There are zero or more "teachers".
2. Each teacher teaches one or more subjects.
3. Each subject has a duration.
4. There are one or more classrooms.
5. Each classroom has a duration in which it is open.

Looks like there is a need for teachers, subjects, and classrooms:
class Subject
{
string title;
unsigned int duration_minute s;
};

/* A teacher has a name. A teacher has a reference
* or pointer to a subject. This allows sharing
* of subject data.
*/
class Teacher
{
string name;
vector<Subject *> subjects;
};

typedef unsigned int Start_Time;

/* A schedule record has a start time,
* a pointer to the instructor {who is using the
* time} and a pointer to the subject {being taught}.
*/
class Schedule_Record
{
Start_Time start;
Teacher * p_instructor;
Subject * p_subject;
};

typedef vector<Schedule _Record> Schedule;

class Classroom
{
string location; /* i.e. A106 or Eng202 */
Schedule agenda;
};
Now start out writing a simple main() function
which inputs a roster of subjects and get it
working. Next, add in the teachers and the
subjects each teacher is teaching. Test and
get it working correctly. Next, create a container
of classrooms. Add code to list the agenda of
each classroom (and the class location). Get this
working. This is your fundamental program.
Now implement your algorithm into this program.

Suggestions:
1. Use data files for input.
This will make testing a lot easier and automated.
2. Test Early, Test Often, keep the tests.
Read about "Test Driven Development".
3. Save Early, Save Often.
Once the program works (at each stage), save
it {preferably on some other medium than your
harddrive}. This will allow you to revert to
the last working version in case something goes
awry.
4. Read about Databases.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Jul 23 '05 #3
"Numerical Recipes in C" has a good discussion about simulated
annealing. The book is available in PDF format online. Search google,
and you'll find it.

WARNING #1: You are going to have to specify values for how well a
match is for simulated annealing. For example, you might give a +5
value for every class a teacher teaches that agree with the hours of
teaching the teacher desires. But for the more important topic of is a
particular teacher trained in a subject, you'll give a much more
important value -- say +50 or +100. You'll have to do this for every
variable in your system. Then you can start annealing.

WARNING #2: Annealing can be somewhat touchy. The best parameters are
often found by trial and error -- especially when you are mapping
something qualitative to something quantitative. Experiment a little.

Good luck!

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1543
by: HI-Lab * the Social Technology | last post by:
I'm searching for a script or an application (if possible free) to create: - a business plan on-line or - a simulated enterprise for educational purposes. I found on Sourceforge "Simuland" ( http://sourceforge.net/projects/simuland/ ) but the project appears
2
2005
by: Sean Berry | last post by:
I want to debug a script that has a line like the following: if len(os.environ) > 0: How do I debug this from the command line. I tried QUERY_STRING='sized=72&shaped=3' ./aqua_getShapes But that returns: QUERY_STRING=sized=72&shaped=3: Command not found. Please help. Thanks
6
3275
by: tc | last post by:
Does anyone know of a module for python which simulates a samba server (windows fileshare). Instead of sharing a Phisical Device I'd like to share a database based filesystem which is spread over various numbers of drives and servers. Any hints? TC
0
1188
by: Sam | last post by:
I'm using Python 2.3.5 with pygtk 2.4.1, and I'm using the second threading approach from pygtk's FAQ 20.6 - invoking "gtk.gdk.threads_init()", and wrapping all gtk/gdk function calls with gtk.threads_enter()/gtk.threads_leave() I start a thread, via thread.Threading.start(). The thread then calls a particularly time consuming C function, from an extension module. I find that when the thread is running the C code, the GUI hangs even...
2
1197
by: mnmgirl | last post by:
hi im new here.. does anyone know simulated annealing algortihm? im using SA for my final year project but i don't understand the algorithm.. can someone please help me out.. thanx..<^_^>
4
1977
by: mserkank | last post by:
i have a project. in my project i need to cofigure a network and upload my own MIBs and run them. I have just one computer in my lab. therefore i m creating my network with simulating program which called Adventnet. i have a couple of problem could you help me? thank you very much... 1- I m using SNMPc and adventnet trial version it should be problem. 2- can i write my own MIBs which mention the name of the agent, type of the agent such as...
0
1157
by: polen.t2006 | last post by:
Hi, in the past it worked well to send from own program a simulated Key- press of the Cursor-up key Taste to another program, that in the other prgram the selection of an item in a listfield moves one step up/down: sendmessage(wnd,WM_KEYDOWN,VK_UP,0); sendmessage(wnd,WM_KEYUP,VK_up,0); Now its not working anymore somehow (software-update), albeit e.g. a
6
3760
by: starxxx | last post by:
I need help n writing a simulated annealing algorithm that is able to maximize f(x)=sin(0.15*x)+cos(x) defined on the interval 0<= x <= 40 using the cooling schedule
1
4606
by: momogi | last post by:
Stil about simulated programming,,, Here is the code I have. Firstly, it must generate a path using number 1 to 6 to represent the city. Then it will calculate the distance (using the coordinate). But, in fact, the output of the distance doesn't appropriate with the coordinate of the randomed path. The output of the distance always 129.08, which is the distance city 1 to city 6. every time the code is deployed, it always prints 6 cities,...
0
7854
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
7978
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8221
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.