Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRide Control System Pin
immanis1-Oct-03 20:54
immanis1-Oct-03 20:54 
GeneralRe: Ride Control System Pin
immanis1-Oct-03 22:58
immanis1-Oct-03 22:58 
GeneralRe: Ride Control System Pin
jhwurmbach1-Oct-03 23:44
jhwurmbach1-Oct-03 23:44 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 3:09
David Chamberlain2-Oct-03 3:09 
GeneralRe: Ride Control System Pin
jhwurmbach2-Oct-03 5:36
jhwurmbach2-Oct-03 5:36 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:31
David Chamberlain2-Oct-03 6:31 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 5:47
immanis2-Oct-03 5:47 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:49
David Chamberlain2-Oct-03 6:49 
immanis wrote:
I think the best design would make the vehicles their own individual processes.

Having done several simulations, I want to caution you against implementing your simulation as if it were a real system, and by that I mean that each vehicle being a process is an implementation detail and not an aspect of what you are trying to simulate.

What?

Your simulation model really consists of sensor inputs, processing (state transitions), and controller outputs, where the sensor inputs and controller outputs are "simulated" as opposed to being connected to hardware. To simulate this process flow, you can make a set of processes that each need to react/respond to a controller process, or you could put each vehicle instance in a list of vehicles. On each simluation cycle, you simulate the acquisition of new inputs, iterate through your vehicle list to see what changes they need or what effect the new inputs have, and then you simulate the outputs, by updating the "state" of your world model. It's a very cyclic process: input, process, output (and the time frame of each simulation step is determined by you and is not at all affected by Windows). That is a much simpler implementation than interacting processes, and while I would argue that the simpler implementation is preferable, there is no impact to the underlying simulation that you are trying to evaluate.

When it comes to crunch time, you don't want to have to worry about the implementation as much as whether the control logic works right, and your ultimate goal is the evaluation of a set of input parameters on the performance of the ride (safety, customer throughput, etc). In fact, if you can define an evaluation function for the system "state," then you could use a genetic algorithm approach for finding the best set of input parameters that maximizes or minimizes your evaluation function.

"Yeah ... that's it ... and maybe you could get Loni Anderson to help. Yeah ..."

Good luck,
Dave

"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Ride Control System Pin
immanis2-Oct-03 9:07
immanis2-Oct-03 9:07 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 9:52
David Chamberlain2-Oct-03 9:52 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 12:21
immanis2-Oct-03 12:21 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 3:10
David Chamberlain3-Oct-03 3:10 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 6:23
immanis3-Oct-03 6:23 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 6:57
David Chamberlain3-Oct-03 6:57 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 10:18
immanis3-Oct-03 10:18 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 13:30
immanis2-Oct-03 13:30 
GeneralClose a document programatically Pin
Kok Meng Cheong1-Oct-03 20:51
Kok Meng Cheong1-Oct-03 20:51 
GeneralRe: Close a document programatically Pin
David Crow2-Oct-03 3:22
David Crow2-Oct-03 3:22 
GeneralRe: Close a document programatically Pin
Kok Meng Cheong2-Oct-03 15:13
Kok Meng Cheong2-Oct-03 15:13 
GeneralRe: Close a document programatically Pin
David Crow3-Oct-03 2:56
David Crow3-Oct-03 2:56 
QuestionHow can I read a 'gif' file Pin
Anonymous1-Oct-03 20:28
Anonymous1-Oct-03 20:28 
AnswerRe: How can I read a 'gif' file Pin
KaЯl2-Oct-03 4:44
KaЯl2-Oct-03 4:44 
Generalautorun USB flash memory stick Pin
closecall1-Oct-03 19:49
closecall1-Oct-03 19:49 
GeneralMaking an Application Still Image-Aware Pin
shlim881-Oct-03 16:31
shlim881-Oct-03 16:31 
GeneralI need to make this more compact. Pin
esepich1-Oct-03 14:13
esepich1-Oct-03 14:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.