Skip to content

Beyond Smart Cities Tutorial

Arnaud Grignard edited this page Jun 30, 2019 · 1 revision

The goal of this tutorial is to give the possibility to be familiar with modelling practice by:

  1. Installing a programming Software on its personnal computer

This part consists in being familiar with the usage of Software for simulation purpose. The different steps are the following one:

  • Installing a Software
  • Downloading a specific Project and Import it in the Software
  • Run the simulation
  • See the output of the simulation in a SpreadSheet
  1. Analysis the output of the model

This part consists in analysing the output of the initial configuration by ploting the result of the simulation in a diagram

  1. Modify the input of the model

This part consists in modifying the initial configuration by modifying the initial condition in a text file.

Task 1: Run a Simulation (30 min)

Download

GAMA

Here is the link to download the compatible version of GAMA (take the GAMA 1.8 Release Candidate 2)

Mac OS X (Java Embedded)

Windows 64 Bits (Java Embedded)

Ubuntu (Java Embedded)

CityScope Project (that will then be imported in GAMA)

Download this .zip file and unzip it https://github.com/CityScope/CS_Simulation_GAMA/archive/master.zip It will create a folder call CS_Simulation_GAMA-master

Run Gama

Running GAMA for the first time requires that you launch the application (Gama.app on MacOS X, Gama.exe on Windows, Gama on Linux, located in the folder called Gama once you have unzipped the archive). Other folders and files are present here, but you don't have to care about them for the moment. In case you are unable to launch the application, of if error messages appear, please refer to the installation or troubleshooting instructions.

  1. Open Gama Double click on Gama.app on MacOS X, Gama.exe on Windows, Gama on Linux (on Mac OS X you will have to double click on the Gama.app and click Open (as it's not a native Apple Software)

A pop up window will ask to choose a WorkSpace (e.g Documents/GamaWorkspace) or use the browse button to choose a workspace (this is the folder where will be store your project) then press OK

  1. Import Gama Project Right click on User Models->Import->GAMA Project ...
  1. Select Project directory Go to the palce where you have unarchive the project (folder call CS_Simulation_GAMA-master) and choose CS_CityScope_GAMA
  1. Go to your GitHub folder and select CS_CityScope_GAMA directory.
  1. Click Finish
  1. In User Models you now have a project called CityScope_GAMA, to run the model open CityScope_GAMA/models/CityScope_main.gaml and Run the experiment gameit
  1. Run the simulation by clicking on play
  1. Read the results file After 1500 iterations a file called mobility.csv is created in the folder results

Task 2: Analyse a Simulation (10 min)

By looking at mobility.csv plot a diagram whowing the usage of walk, bike, car, and bus. Which one is the most used in the configuration?

Task 3: Change initial condition (10min)

In the folder includes/Game_IT/you will find 4 different files that can be edited to change the initial condition of the model

  • ActivityPerProfile.csv
  • CriteriaFile.csv
  • Modes.csv
  • Profiles.csv

In Modes.csv change some value in order to see the impact on the global results Example: Change the price/km for the walking mode to 1, rerun the simulation and see the impact in the new file mobility.csv. What change do you see?

Clone this wiki locally