I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

simulator

geocyt\′s Photo
18 Sep 08, 3:08PM
(2 replies)
simulator
thanks very much Will i managed to get both the Borland and Visual compilers. the simulator i proposed as a project in my school is being customised for a bank. the school wants me to create models out of the results that i get from the simulator. so that the bank can be able to predict how they should expect customers within certain periods of the week. but to say the truth i do not know any modeling language that i can use. my lecturer asked me to use SPSS to create the module. what do you think about that .
will\′s Photo
18 Sep 08, 6:19PM
Do you have access to SPSS?

However, If you want to do affordable modeling quickly then why not start by using R http://www.r-project.org/ I would us this to get the logic right, its exceptionally quick to use and plot graphs etc. Then for the bank you'll have to hard code your work in C++ and produce a nice interface. Getting the numerics right is usually the hard part.

I'd be interested to read more about your simulator and how you propose it'll work. I'd a lot of experience with modeling risk for insurance etc, and its probably on a similar thread. Presumably you've taken measurements or you have some other external predictor of customer numbers?
geocyt\′s Photo
5 Nov 08, 11:01AM
well Will, strangely i have gotten access to SPSS, and even MATLAB. since it is a school project we are doing in one year ie spread across two semesters. we are in the first semester.

this is how the program works.

as customers come into the bank they prompt the simulator program that they are in the bank. we i am trying to use the time code (as the time they got into the bank ) as their unique code. clock(). then the program uses the timecode to time them as they are in the queue. after every minute every one in the queue has his time updated. when a server is free and the quueue is not empty, the first in the queue moves to the free server to be served. at the servers desk, the program stops the custmer's waiting time and starts the custmer's transaction time. at the end of the transaction the program is prompted and the the transaction time is stopped. this process continues until everyone in te queue is served. at the end of simulation, these values should be fed into a modeller ie SPSS/MATLAB/any other, and modelled in the form of a graph.

the problems i am facing now is how to get the customers to prompt the program when they join the queue. an infra red sensor is not the best because the program would only know that some one joined the queue but who exactly? (customer N). also i do not want to bother the servers behind the desk as they are already have too much ontheir hands to take care off. so something must prompt the program that customer N has reached the transaction desk and is about to be served.

next problem is that how do i create the timer to time the program which time customer N came into the bank, after every second it should update each custmer in queue's waiting time, thread in between each part of the simulation, ie arrivalEvent, QueueingEvent , TransactionEvent, Departure event in the same program as some can happen at the same time and lastly what tools in the programming language to used to delay ie to get the program to last for sTime, update waiting time after each second etc.

if you do have any ideas i would love if you could help.
Currently you need to be logged in to leave a message.