18.10.2014 Views

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SIMSCRIPT II.5 Programming Language

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Discrete Simulation Concepts<br />

1 main<br />

2 use 1 for input<br />

3 read N.PRODUCTION.CENTER<br />

4<br />

5 create every PRODUCTION.CENTER<br />

6<br />

7 for each PRODUCTION.CENTER do<br />

8 read MACHINE.TYPE(PRODUCTION.CENTER)<br />

9 U.PRODUCTION.CENTER(PRODUCTION.CENTER)<br />

10 loop<br />

11<br />

12 start simulation<br />

13<br />

14 stop<br />

15 end<br />

This routine sets up the production center data structure. The number of production centers is read and<br />

the centers are created. The type and number of machines for each center is then read until all production<br />

centers have been defined.<br />

Simulation then begins with the first job arrival . . . JOB.INIT.<br />

Number of production centers {8<br />

Type and number ⎧PRESS 1 SAW 3 LATHE 2 MILL 1<br />

of each machine ⎨SHAPER 1 GRINDER 1 WELDER 1 DRILL 2<br />

⎩<br />

Data read by MAIN<br />

241

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!