-
Notifications
You must be signed in to change notification settings - Fork 21
Beyond Smart Cities Tutorial
The goal of this tutorial is to give the possibility to be familiar with modelling practice by:
- 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
- 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
- Modify the input of the model
This part consists in modifying the initial configuration by modifying the initial condition in a text file.
Here is the link to download the compatible version of GAMA (take the GAMA 1.8 Release Candidate 2)
Windows 64 Bits (Java Embedded)
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
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.
- 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

- Import Gama Project Right click on User Models->Import->GAMA Project ...

- Select Project directory
Go to the palce where you have unarchive the project (folder call
CS_Simulation_GAMA-master) and chooseCS_CityScope_GAMA

- Go to your GitHub folder and select
CS_CityScope_GAMAdirectory.

- Click Finish

- In User Models you now have a project called CityScope_GAMA, to run the model open
CityScope_GAMA/models/CityScope_main.gamland Run the experimentgameit

- Run the simulation by clicking on play

- Read the results file After 1500 iterations a file called mobility.csv is created in the folder results

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?
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?