10/08/2024

Contents

Toggle

## Project: Smart City on Netlogo

This mini project is part of the course carried out at ENSTA. This mini-project aims to produce, by constructive method, a simulation of a Smart City on the Netlogo software.

The report to be submitted is a compressed file including a PDF detailing each part as well as the Netlogo code of each part. It is noted that observation parameters (graph, counter, etc.) must be added in order to validate your comments. These parameters are not explained in the specifications.

## Part 1: car and smart lighting

The observer defines the number of cars generated. At initialization, each car chooses a destination square and moves there by 1 per tick. Once the destination is reached, the car chooses another destination and drives there.

When a car moves, the patches located at the location of the car as well as the two boxes (depending on the future movement) become yellow. The brightness of the box fades over time.

The luminosity evaporation rate is a parameter of the observer.

Each point must be argued separately:

1. Define agents, observer parameters, setup and go.
2. Explain the model chosen (how to move, how to create the lighting, etc.).
3. Carry out simulations
1. What do you observe in a simulation (is this the desired behavior)?
2. What do you observe in several simulations (is there always convergence)?
3. What do you observe by changing the observer parameters (critical or cascading effects)?

## Part 2: the firefighters

Four fire trucks are located in the center of the model (their nest) and stay there or return there as long as there is no fire.

A fire can start spontaneously on any space (except the nest) according to the parameters of the observer. A fire gains power and spreads according to the observer parameters.

When a fire exists, the fire engines go there. When a truck is on a fire square, the fire value decreases by a value defined by the observer. A truck that is on an empty space will search for the nearest fire space.

Each point must be argued separately:

1. Define new agents, observer settings.
2. Explain the model chosen for the fire.
3. Carry out simulations
1. What do you observe in a simulation (is this the desired behavior)?
2. What do you observe in several simulations (is there always convergence)?
3. What do you observe by changing the observer parameters (critical or cascading effects)?

## Part 3: the police

Two police cars move through the city twice as fast as a car. Spontaneously, defined by the observer, a crime can appear.

A crime has the same behavior as a displacement car 1. The crime moves randomly in space (with a wiggle of more or less 30°).

When a crime is detected, the police cars head towards its position at all times. When a police car has a crime in the neighborhood, it "kills" it.

Each point must be argued separately:

1. Define the agents, the parameters of the observer.
2. Explain the chosen model (for crime, for the police).
3. Carry out simulations
1. What do you observe in a simulation (is this the desired behavior)?
2. What do you observe in several simulations (is there always convergence)?
3. What do you observe by changing the observer parameters (critical or cascading effects)?