fork download
  1. * GPSS Simulation of a Manufacturing Shop
  2. * Parts are produced every 5 minutes
  3. * Inspector takes 4 +/- 2 minutes to inspect, rejects 15%
  4.  
  5. * Define the facility (inspector)
  6. FACILITY INSPECTOR
  7.  
  8. * Generate parts every 5 minutes
  9. GENERATE 5
  10. * Move the part to the inspector
  11. QUEUE INSPECTOR
  12. * Seize the inspector
  13. SEIZE INSPECTOR
  14. * Simulate inspection time (4 +/- 2 minutes)
  15. ADVANCE 4,2
  16. * Release the inspector
  17. RELEASE INSPECTOR
  18. * Decide if the part is rejected
  19. TEST GE RN1,15,REJECT
  20. * If not rejected, go to next step
  21. TRANSFER ,NEXT
  22. REJECT TERMINATE
  23. NEXT TERMINATE
  24. END
Success #stdin #stdout #stderr 0.01s 5292KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "*": syntax error