1、Repast,The Repast 3 family of tools is the precursor to Repast Simphony Repast for Java Repast for the Microsoft .NET framework, and Repast for Python Scripting Repast Simphony (Repast S) is in pure Java Extends the Repast portfolio by offering a new approach to simulation development and execution
2、A set of advanced computing technologies for applications such as social simulation Java APIs as well as GUIs for running and developing models and Eclipse plugin,Repast home page: http:/ Several links on the right of the page Papers Documentation On-line introductory tutorial: shows you how to use
3、the interface to create models Comes with the download, installed as RepastSimphony-1.2.0docsGetting Started.pdf The HTML version is in the folder /RepastSimphony-1.2.0/docs/tutorial/SIM/,Repast Simphony Development Environment: How to set up an Eclipse development environment for Repast. This comes
4、 with the download, and is installed asRepastSimphony-1.2.0eclipse and the file RepastSimphony-1.2.0eclipsereadmereadme.html Repast Simphony Reference: Coding the APIs This comes with the download, and is installed as RepastSimphony-1.2.0docsReference.pdf The HTML version is in the folder RepastSimp
5、hony-1.2.0docsreferenceSIM,Features of Repast Simphony,Fluid model component development using any mixture of Java, Groovy, and a flowchart interface Groovy: a dynamic/scripting language for the Java Platform as an alternative to Java Features similar to those of Python, Ruby, Perl Libraries for gen
6、etic algorithms neural networks regression Estimate parameters to give a best fit for the datae.g., least squares random number generation specialized mathematics,An automated Monte Carlo simulation framework Relies on repeated random sapling Used when its infeasible/impossible to compute an exact r
7、esult with a deterministic algorithm,Automated connections to optional external tools, including plugins to the R statistics environment (alternative to commercial SPSS) *ORA risk assessment tool Given social, knowledge and task network info, find those people, skills or knowledge and tasks critical
8、 for performance or info security Pajek network analysis program JoSQL for performing SQL queries on collections of Java objects the VisAD (Visualization for Algorithm Development) scientific visualization package, A Java component library for interactive and collaborative visualization and analysis
9、 of numerical data the Weka data mining platform, Machine learning algorithms for data mining tasks that can be applied directly to a dataset or called from Java code many popular spreadsheets MATLAB,Full integration with the JUNG (Java Universal Network/Graph Framework) network modeling library An
10、extendible language for the modeling, analysis, and visualization of data that can be represented as a graph or network Microsoft Excel spreadsheets UCINET DL file importing A comprehensive package for the analysis of social network data ($40 for students) Geographical spaces including 2D and 3D GIS
11、 support,Info from the Repast 3 Website,http:/ Papers S. Deschamp, Univ. of Wellington Repast to simulate a knowledge network involving heterogeneous agentse.g., small and medium enterprises, universities, public research institutes How co-operative research strategies can be implemented among agent
12、s with different objectives and rewards How this affects the dynamics of innovation How agents evolve and converge The impact at the system level,Owen Densmore of Sun Microsystems Repast to model self organizing networks within the context of the Local Knowledge Networking project Seeks to establish
13、 computing sessions without central control, thus more adaptive during failure and are more robust Propagate requests via alternative techniques (e.g., rings of neighbors),Tutorials Howto Documentation These mostly relate to using the APIs and are all brief Third Party Tutorials Of variable quality
14、Several of the links are dead See especially the link to Tesfatsions tutorial (but RepastJ),Examples Java Web Start (.jnlp) files Click the link Click OK in the resulting window, asking whether to open it with the Java Web Start Launcher Get a control bar and a window Window with tabs for Parameters
15、: set the values for the model parameters (see examples, below) Custom Actions: controls for the simulation Repast Actions: built-in Repast functionalitye.g., making movies, edit charts,Control bar,The control icons, left to right: Load Model Multiple Runs Start Start Step Initialize Stop Pause Setu
16、p Model View Parameters Exit First step a couple of times, then start, and pause to inspect a given state, then step or start again,Basic Grid Examples Heatbugs See the Swarm description: http:/www.swarm.org/examples-heatbugs.html,Parameter tabs selected,Simulation after a while,Basic Grid Examples
17、(cont.) Heatbugs on Hexagons (Same reference as previous) Hypercycles (See the reference) Game of Life (See Wikipedia, “Conways Game of Life”) Mousetrap See the Swarm description: http:/www.swarm.org/examples-mousetrap.html SugarScape (The reference is given, but also Google it.) Network Examples Ji
18、ggle Toy (Explanation given) Friendship Network (Link to reference) Geographic Information Systems (GIS) Examples GIS Agents (Blank screen) System Dynamics Examples Rabbit Population (Brief explanation and link to reference),Installing Repast Simphony,Go to http:/ Under heading “The Latest Repast Si
19、mphony Release” at the top of the page, click on “Windows Installer” In the short wizard-based installation process, accept all the defaults,Running a Repast Simphony Example,All programs Repast Simphony Repast Simphony IDE,Accept this default,In the Package Explorer panel (left side of window), exp
20、and the repast.simphony.demos folder,The Model: simple variation of predator-prey behavior using 3 agent types: wolves, sheep, and grass Both the wolves and sheep move randomly on a grid Movement has a cost: lost energy. Wolves and sheep need to eat food to replenish their energy They die once their
21、 energy level reaches 0 Wolves prey on sheep May eat them if the 2 are located in the same spatial position Sheep may eat grass if located on a patch with living grass Once eaten, grass needs to re-grow before being eaten again Re-grow rate: counting down after the grass has been eaten Reproduction
22、is modeled by a random process Creates a child from the parent Divides the energy of the parent agent in half Assigns the energy equally to the parent and child,Run Run Configuration In the panel on left, click on PredatorPrey,Dont modify the defaults Click Run,See the 4 tabs below the panel on the
23、left The Scenario Tree is currently selected and is displayed in the panel,Click the Run Options tab Moves above the Scenario Tree tab The Run Options panel now occupies the left side of the window The Schedule Tick Delay slider initially indicates 0 msec. Move it to, say, 6 msec. Now click the Para
24、meters tab Parameters Panel to appears For now, just accept initial values,Can change such parameters as the initial number of sheep, what a sheep gains from a given amount of food, and the reproduction rate of the wolves,Back in the Scenario Tree, click A Display The General interface is initially
25、selected from among the 4 options available in the left panel No need to change any of these values The Agent Style and Grid Style interfaces let you,specify the order in which the agent icons are overlaid in the display (and some more advanced things) modify the size of the grid units specify wheth
26、er grid lines are to be displayed No need to modify any of this. The Schedule interface lest you modify how the display is updated relative to the simulation. Again, just accept defaults,Now click OK In the model window, click the Step Run icon at the top (double arrow pointing right) The scenario i
27、s displayed in the large panel. Click the Step Run icon several times to step through the simulation. Now stop the simulation by clicking the Stop Simulation icon, a square within a circle, just right of the Step Run icon,In the Scenario Tree again, double click A Chart Initially, the Chart Data Map
28、pings interface is shown. Get the Visual Setting interface by clicking the option in the left panel No need to change any setting in either interface Click OK.,Below the display, there are now two tabs A Chart Predator Prey Model A Display. Click the Reset Run icon, shown with 2 arrows and the right
29、 of the Stop Simulation icon The display and the tabs below it disappear.,Click the Step Simulation icon again The display and the tabs reappear Click the Step Simulation button several more times Then click the A Chart tab Plots the sheep and wolf populations over the simulation steps through which
30、 you have progressed.,Now show the display (by clicking the tab) Watch the patches of grass grow and shrink and the sheep and wolf figures increase ad decrease in number Control how quickly the simulation runs with the slider in the Run Options panel,Click the pause icon, to the left of the Run Simulation icon, has 2 bars Display the chart To dismiss the simulation window, select File Exit To terminate Repast, select File Exit in the main Repast window,