SimulationUsingTool - Simulation using the Simulation...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Simulation using the Simulation / Control Tool When writing a simulation model, one can either employ a dedicated simulation language like SIMAN, or a general purpose programming language such as C++. The simulation language has the advantage of being easy to use. Consider the SIMAN simulation language. It provides a set of basic modeling elements, which can quickly be assembled in order to construct your model. It also provides the essential software elements that are needed to execute the model and to perform the requisite statistical analyses. If one elects to program a simulation model using a general purpose language, then one must also provide the software needed to execute these auxiliary functions. However, simulation languages such as SIMAN have their limitations. SIMAN is not a general purpose programming language like C++ and, therefore, cannot provide full modeling flexibility. One is limited to programming within the set of constraints imposed by the provided modeling elements. For many modeling situations, the provided set of modeling elements is sufficient, and using a simulation language such as SIMAN is an optimal choice over developing the simulation model in a language like C++. However, to model a complex automated system, the set of modeling elements provided by most simulation languages impose severe modeling constraints, particularly when one attempts to assess the impact of the control architecture upon the system. Using a general programming language becomes essential. Davis et al. 1993 discusses in detail the numerous restrictions that entity flow-based simulation languages impose upon the modeling of an FMS. Mize et al. (1992) further discuss the inaccuracies that ensue from the use of current simulation languages to model an FMS. Although SIMAN and other simulation languages do permit C subprograms to be included within the model, there is only so much that can be accomplished with these patches. Furthermore, these patches invariably make the model more difficult to verify. The goal of the developed software tool is to provide a simulation approach using C++, which could provide the modeling convenience of a simulation language such as SIMAN, while providing the additional capability needed to control a real-world system. A set of objects was developed in order to provide the minimum necessary modeling elements that must be used in every simulation and controller, regardless of the modeling methodology being used. Appendix A has the class definition of all of the objects that are part of the simulation tool. The Modeling Framework Each included modeling element is represented as an object in C++. As with most simulation approaches, this approach is also event-driven, and an executive object manages the simulation by the sequential processing of events. An event list is maintained where the scheduled events are stored in chronological order based upon the time that they are scheduled to occur. The simulation consists of three basic parts.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/13/2011 for the course EEL 5937 taught by Professor Staff during the Spring '08 term at University of Central Florida.

Page1 / 17

SimulationUsingTool - Simulation using the Simulation...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online