1 Integrating Repast Library and Running RePast Examples using JBuilder X 07/19/2004 by Deddy Koesrindartoto Department of Economics Iowa State University.

Slides:



Advertisements
Similar presentations
How to utilize your iTunes for use with your SwiMP3 Please be aware that all the SwiMP3 line of players do not have licensing to any of the songs that.
Advertisements

Document Properties: adding information to your Microsoft Office documents Step 1: Add information to Document Properties What are Document Properties.
MS Access 2003 Tutorial By: Juan GUANTENG!!! Y7. Step 1 Launch the Microsoft Access 2003 program. This can be done by clicking an icon on the desktop.
CREATING USER ACCOUNTS Group accounts simplify administration by organizing user accounts into a single administrative unit. They provide a convenient.
Once download completes, click “Open Folder” Uncheck the box “Close this dialog box when download completes” Save the file in a location easy to find.
Introduction to Windows File Management
Chapter 1 Databases and Database Objects: An Introduction
BA271 Week 6 Lecture Database Overview Dave Sullivan.
1 Distributed File System, and Disk Quotas (Week 7, Thursday 2/21/2007) © Abdou Illia, Spring 2007.
Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 1 1 Microsoft Access 2003 Tutorial 1 – Introduction To Microsoft Access 2003.
Creating FrontPage Tasks The task view allows you to add information about what you want to accomplish when creating your Web site.
RIMS II Online Order and Delivery System Tutorial on Downloading and Viewing Multipliers.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Access Tutorial 10 Automating Tasks with Macros
Chapter 9 Introduction to ActionScript 3.0. Chapter 9 Lessons 1.Understand ActionScript Work with instances of movie clip symbols 3.Use code snippets.
The basics of the Online Portal
Website Designing Using Ms FrontPage FrontPage 2003 Create a Web site with FrontPage.
Github & Arduino How To: Post On Github How To: Download from Github How To: Upload Code Downloaded from Github to Arduino Tommy Sanchez EE400D Spring.
What is an Merge? Regular mail merge: Write one letter Make a database with individual info The merge automatically personalizes a letter for each.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Chapter 1 Databases and Database Objects: An Introduction
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
Dreamweaver – Dreamweaver Extras Web Design Section 8-4 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development.
COMPREHENSIVE Windows Tutorial 7 Managing Multimedia Files.
Advanced Computational Modeling of Social Systems Lars-Erik Cederman and Luc Girardin Center for Comparative and International Studies (CIS) Swiss Federal.
Installation Walk-Through Step 1 – Download the Installation Files
1 Building the CarryDrop Simulation in JBuilderX By Deddy Koesrindartoto 08/16/2004.
Active-HDL Interfaces Building VHPI Applications C Compilation Course 9.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Creating and running a Java program. Eclipse Interactive Development Environment (IDE)  Eclipse is an Interactive Development Environment (IDE) for Java.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Creating a backup file Downloading a backup file Uploading a backup file Resetting or restoring your course from a backup file.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
Making Python Pretty!. How to Use This Presentation… Download a copy of this presentation to your ‘Computing’ folder. Follow the code examples, and put.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
11/25/2015Slide 1 Scripts are short programs that repeat sequences of SPSS commands. SPSS includes a computer language called Sax Basic for the creation.
Introduction to Computational Modeling of Social Systems Prof. Lars-Erik Cederman Center for Comparative and International Studies (CIS) Seilergraben 49,
1 Setting Up for RePast, and Running a Repast Stand Alone Example 06/21/2004 by Deddy Koesrindartoto Department of Economics Iowa State University.
Chapter 1 Getting Started With Dreamweaver. Exploring the Dreamweaver Workspace The Dreamweaver workspace is where you can find all the tools to create.
BA271 Week 6 Lecture Dave Sullivan. Goal for today… Status Report – Review where we are … Status Report – Review where we are … Begin learning about Microsoft.
FIRST COURSE Word Tutorial 6 Using Mail Merge. Objectives Learn about the mail merge process Use the Mail Merge task pane Select a main document Create.
Prof. Dr. Lars-Erik Cederman ETH - Center for Comparative and International Studies (CIS) Seilergraben 49, Room G.2,
Evolving Strategies for the Prisoner’s Dilemma Jennifer Golbeck University of Maryland, College Park Department of Computer Science July 23, 2002.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
This is an introduction to configuring Microsoft Outlook for Office 2010: Forwarding FAMIS work order opening and closing s to other users or alternate.
Copyright 2007, Paradigm Publishing Inc. BACKNEXTEND 8-1 LINKS TO OBJECTIVES Import data from another Access table Import data from another Access table.
CSIT 230 (Blum)1 Zipping. CSIT 230 (Blum)2 Start/All Programs/WinZip/WinZip 8.1.
Author: Loh Jianxiong Christopher Contributions: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang, Tong Chun Kit, Tania Chattopadhyay.
Obtaining the Required Tools
Word Tutorial 6 Using Mail Merge
T_C_N_L_G_ E D I D I E O Y O H I E B J I R E A A W.
Quickr Places & Templates Introduction
Adding Assignments and Learning Units to Your TSS Course
Lecture 4 : Windows 7 By MSc. Manar Joundy Hazar 2017
Tutorial 1 – Introduction To Microsoft Access 2003
Getting Started with Git and Bitbucket
Creating a Customized List of Classes Using Microsoft Access 2000®
Tutorial 1 – Introduction To Microsoft Access 2003
Windows Tutorial 7 Managing Multimedia Files
Chapter 1 Databases and Database Objects: An Introduction
Introduction to RePast and Tutorial I
Microsoft Windows 7 Basics
Tutorial 8 Sharing, Integrating, and Analyzing Data
Tutorial 10 Automating Tasks with Macros
Presentation transcript:

1 Integrating Repast Library and Running RePast Examples using JBuilder X 07/19/2004 by Deddy Koesrindartoto Department of Economics Iowa State University

2 Configuring RePast Library in Jbuilder X To be able to be called in the program, we have to create references to RePast library. After launching Jbuilder, choose Tools | Configure Libraries (1) as shown in Fig. 1A. Configure Libraries dialog box, as in Fig. 1.B will appear. Select New button (2) New Library Wizard as in Fig. 1.C will appear. Fill in Name and Location fields as shown (3). Then select Add to add this library to the JBuilderX (4). (2) Fig 1.A Fig 1.BFig 1.C (4) (1) (3)

3 (1) select repast.jar file (2) (3) Navigate through your file browser, and go to RePast-2.2/lib directory, and select the repast.jar file (1) and click the OK button (2). The New Library Wizard will look like Fig.2.B, then select the OK button (3). When Repast library is successfully added in Jbuilder, Configure Library dialog box will look like Fig. 2.C. Click OK to complete (4). Fig. 2.A Fig. 2.B RePast library is successfully added (4) Fig. 2.C

4 Download RePast source code examples Navigate to the following link: Choose and download the source code of any example you want in a working directory. Proceed with unzipping the files.

5 Running RePast examples using Jbuilder X IDE (1) (2) (3) After launching Jbuilder, select File | Open Project (1) as shown in Fig.3.A. It will bring up to the Open Project or Project Group dialog box as shown in Fig. 3.B. Navigate through your file browser and select the working directory of the example that you downloaded and unzipped earlier and select the file with.jpx or.jpr extension (2). (In this tutorial I select GraphIPD.jar) Proceed by selecting OK button (3). Fig. 3.A Fig. 3.B

6 Errors, why ? Fig 4.

7 Incorporating Repast-2.2 Library to a project (1) Fig 5. Errors are caused by an undefined library. To fix this, click Project | Project Properties from the main menu (1)

8 Select the Required Libraries folder (1). The dialog box in Fig 6.A will show up. Select the Repast-2.0 library (with red letters) (2) and select Remove (3). Fig 6.A. Fig 6.B. (1) (2) (3) (4) The next step is to incorporate the RePast-2.2 library into this project. Click Add (4) button in Fig 6.A. The dialog box as shown in Fig 6.B will appear. Select RePast-2.2 library (we defined earlier) (5), and click the OK button (6). Once this process done, the error messages shown in Fig 4. will disappear when the program is compiled and run. (5) (6)

9 Fig 7

10 To compile and run this program, select ModelGUI.java (1) from the project pane click the right Mouse button, and select Run using GraphIPD (2). It will show the RePast standard GUI. An explanation of how to use the RePast GUI can be found in an earlier tutorial. (6/21/2004). It can be downloaded at :

11 A complete tutorial on JBuilder X can be freely downloaded as a zip file at: (this file is included in the commercial version but not in the Foundation version). ftp://ftpc.borland.com/pub/jbuilder/techpubs/jbuilderx/jbxpdfdocs_f.zip A “compact” explanation of how to use Jbuilder ver. 9.0 can be seen at Prof. Andrew Rau-Chaplin of Dalhousie University, Canada. I found “Learn Jbuilder” by Charlie Calvert and Margie Calvert, WordWare publishing, 2002, to be very easy to follow even for a beginner. Get it cheap at Additional info on Jbuilder IDE

12 Gov 2015 Introduction to Computational Modeling for Social Scientists March 5, 2003 Lars-Erik Cederman Most of these slides are taken from

13 Iterated Prisoner’s Dilemma Cohen, Riolo, and Axelrod “The Emergence of Social Organization in the Prisoner's Dilemma” (SFI Working Paper ) In The Evolution of Cooperation, Robert Axelrod (1984) created a computer tournament of IPD –cooperation sometimes emerges –Tit For Tat a particularly effective strategy

14 Prisoner’s Dilemma Game Column: C D C 3,30,5 Row: D 5,01,1

15 One-Step Memory Strategies C D C D p q Memory: C D Strategy = (i, p, q) i = prob. of cooperating at t = 0 p = prob. of cooperating if opponent cooperated q = prob. of cooperating if opponent defected t-1 t

16 The Four Strategies

17 TFT meets ALLD t01234 Row (TFT) Column (ALLD) i=1 i=0 p=1; q= = 8 = D C D C D D D D D D p=0; q=0 Cumulated Payoff

18 Payoffs for 4 x 4 Strategies

19 “Soup-like” topology ALLC TFT ALLD ATFT TFT ALLD In each time period, a player interacts with four other randomly selected players.

20 Adaptation through imitation ALLC TFT ALLD ATFT TFT? ALLD Neighbors at t Imitation

21 Setup() buildModel() step() Initialization Setting parameters Object/ Entities Creation Creating players with different strategy Activities Sequencing resetPlayers();// Reset the agents’statistics interactions();// Let them interact with each other adaptation(); // Let them adapt reportResults();// Calculate and report some statistics

22 Public Access: My methods reset(); Protocols : play(int Time); remember(); Evaluations : getAveragePayoff(); addPayOff(); Adaptations : adapt(); updateType(); Private Access My attributes (data) PlayerID; Type; CumulPayoff; memory ; actions ; prefs; Type; newType; numPlays; otherList; etc. A Virtual Player

23 HW : Add New Strategy

24 Next Week : Get your hands dirty !!