Presentation is loading. Please wait.

Presentation is loading. Please wait.

—————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-1 Day 4 Section 7 - Simulation Control –User Interface Forms.

Similar presentations


Presentation on theme: "—————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-1 Day 4 Section 7 - Simulation Control –User Interface Forms."— Presentation transcript:

1 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-1 Day 4 Section 7 - Simulation Control –User Interface Forms –Efficiency –Monitoring –User-Defined Distributions –Interrupting and Suspending Processes –Exercise 7 Section 8 - Process Activation –Externally Activated Processes –Exercise 8 

2 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-2 Section 8 - Process Activation Part 1 - Externally Activated Processes

3 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-3 Externally Activated Processes We have activated all processes internally according to some rule Activated the process by giving it a name and a time Processes include SHIP Activate a SHIP now Frequently we want to activate processes at arbitrary times Have a given schedule (Official Airline Guide) Show results of large simulations graphically Testing We want to activate processes externally as well as internally.

4 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-4 Externally Activated Processes (continued) Do it about the same as an internally activated event except activation data goes in a file, not a routine Preamble External processes include STORM External process unit is 10 End ''Preamble –In another routine Open unit 10 for input, name = “WEATHER.DAT” –New routine Process STORM End ''STORM Data file for activation STORM 23.35 * STORM 29.2 * STORM 45.6 *

5 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-5 Externally Activated Processes (continued) Process STORM Define.LATITUDE,.LONGITUDE,.DURATION as real variables Read.LATITUDE,.LONGITUDE and.DURATION End ''STORM STORM 23.3555.6140.05 * STORM 29.258.3160.00.7 * STORM 45.652.1154.02 *

6 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-6 Externally Activated Processes (continued) Time phrase can be shown in one of three ways Decimal days: STORM 23.35 * Days, hours and minutes: STORM 23 8 30 * Calendar days, hours and minutes: STORM 1/24/2005 8 30 * In the last case, we have to tell SIMSCRIPT II.5 what the date of the "zeroth" day is: Call origin.r (1, 1, 2005)

7 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-7 Exercise 8 Port Problem, One Last Time(!) C:\Program Files\Simscript3\models\ProblemD

8 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-8 Pacific Port Problem Reprise As a final addition to the Pacific Port Problem, consider the fact that weather conditions occasionally serve to disrupt shipping operations. Storms occur at arbitrary times and prevent all ships (both old and new) from leaving the harbor and delay the new ships at sea. The durations of the storms are to be supplied with their scheduling data in an external data file. Produce the same performance measures as before. In order to make the simulation model more user-friendly for the Harbor Master, modify the user interface form (PROBLEM D) so that the RUN.LENGTH, NBR.DOCKS, NBR.TUGS, and NBR.NEW.SHIPS can be easily modified when the simulation is executed. SELECT PROBLEMD

9 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-9 WEATHER.DAT Storm 1/2/2005 8 00 10 * Storm 1/25/2005 9 00 1 * Storm 2/13/2005 10 00 5 * Storm 6/26/2005 12 00 2 * Storm 7/5/2005 14 00 1 * Storm 7/14/2005 18 34 2 * Storm 12/12/2005 07 41 3 *

10 —————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-10 NOTES To identify the new ships and the old ships as well as the ships that are "at sea", give the ships attributes such as: EVERY SHIP has a SHIP.TYPE and a SHIP.STATUS and belongs to a FLEET File the new ships in a FLEET when they are generated so that the STORM process routine can find the ships and interrupt them. You must assign the status attribute of each ship in the appropriate place in order not to interrupt ships that are not in the event set!! Write a STORM process routine that searches the set FLEET and interrupts the appropriate ships.


Download ppt "—————————— CACI Products Company ———————————————————————————— SimScript II.5 —————————————— 8-1 Day 4 Section 7 - Simulation Control –User Interface Forms."

Similar presentations


Ads by Google