作者boki ()
看板NthuCs03
標題Re: [問題]求助關於gpss語言的介紹
時間Fri Nov 5 13:16:28 2004
GPSS
Language type:
M - Mathematical or Simulation
Description:
GPSS, the General Purpose Simulation System, is a family of mostly-declarative languages designed for discrete-event simulation and system modelling.
A GPSS simulation program consists of a set of blocks, and connections between them. Block types include generators, queues, servers, selectors/routers, data collectors, timing and computational nodes, and various other types. Data types supported in simulation models varied between versions, but usually included integers, reals, strings, and records. GPSS systems always had sophisticated random sample generators to model various probability distributions that arise in modelling of real-world processes.
Some versions of GPSS are still available for sale commercially, no free versions seem to be available. Documentation for the language is not easily available on-line.
Origin:
G. Gordon, IBM, 1961.
See Also:
SLAM Simscript
Remarks:
There were many dialects and editions of GPSS in the period of about 1961-1991. IBM created GPSS, and sold GPSS II and III, GPSS/360, and GPSS V. Other vendors created advanced versions (GPSS/H, GPSSR/PC) and user-friendly versions (GPSS/PC), and Unix-oriented versions (GPSS/C).
Versions of GPSS after about 1988 supported various extensions for more sophisticated input and output. For example, GPSS/H supports The Extended Simulation System (TESS), which allowed simulations to employ relational databases, obtain input with forms, draw graphs, etc. Some versions even supported animation of simulation execution.
By the mid-1990s, GPSS had been largely superseded in industry by newer and more interactive tools, and more sophisticated languages (e.g. SimscriptII). It may still be used as a teaching tool in the study of discrete-event simulation techniques.
Links:
GPSS/H at Meridian Marketing
GPSS/PC and other products at Meridian Marketing
Wolverine Software, home of GPSS/H
Date:
Last updated 1/2/98
Sample code:
A simple model of 20 barbers serving a stream of customers.
BARBERS STORAGE 20
GENERATE RVEXPO(1,1.5)
QUEUE CUSTOMS
ENTER BARBERS
UNLINK MIN BARBERS,BARBGO,1,(UTIL)PL
LINK CUSTOMS
CLEAVE AVANCE .5
TERMINATE
BARBGEN GENERATE ,,,20,5,1PH,1PL 20 BARBERS
ASSIGN IBARB,N(BARBGEN),,PH
LINK BARBERS,FIFO
BARBGO SEIZE PH(IBARB)
ADVANCE RVEXPO(1,30)
RELEASE PH(IBARB)
LEAVE BARBERS
ASSIGN BUSE,FR(PH(IBARB)),,PL
UNLINK CUSTOMS,CLEAVE,1
LINK BARBERS,FIFO
GENERATE 60*10
TERMINATE 1
START 1
※ 引述《andyend (華)》之銘言:
: 老師要我們查gpss的語言介紹
: 發明者,發明時期時間,用途,和其他語言的比較表
: 我用goole查也只查的到比較表
: 但是查不到它的發明者和發明時間和更詳細的資料= =
: 有大大知道嗎= = 上星期五翹課^^|||
: 今天才得知 明天要交報告..
: 有人知道嗎...Orz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.75.237
→ boki:這麻好找 140.114.75.237 11/05
噓 MissYOURname:這是啥~~~~~ 140.114.78.168 11/05