Vous êtes sur la page 1sur 14

Christine Bourjot

UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
METLO0O
Ltude et modlisation de phnomenes
collectis a l`aide d` un logiciel de
deloppement ddi Netlogo
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Seonces de TP sur mochine
Sance 1 :
- Prsentation de NetLogo
- 1utorial 1
- tude, analyse des modeles existants samples model
Catgorie biology : AN1S , AIDS
Catgorie social science : party , segregation , rebellion et
scatter
Sance 2 :
- des lments de programmation
- 1utorial 3
- reprise et modiication de l`application dynamique
d`opinion de \eissbuch et Amblard ,ou dynamique de
population,
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
SEAMCE I
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Presenfofion de MefLogo
NetLogo est un enironnement de programmation pour la
modlisation, simulation de phnomenes collectis naturels
Bien adapt a la modlisation de systemes complexes
composs de centaines, de milliers d`agents agissant en
parallele
Possibilit de jouer aec de nombreuses simulations en
sociologie, biologie, mdecine, physique, chimie,
mathmatiques, inormatique, conomie et psychologie
sociale
Possibilit de crer ses propres modeles
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Les concepfs
Agenfs
Le monde de Netlogo est constitu d` Agents ,
qui peuent suire des instructions
Les actiits des dirents Agents s`excutent
simultanment
Il y a 3 types d` Agents :
- 1ortues
- Patches
- L`obserateur
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Agenfs
1ortues : agents qui se dplacent dans le monde
Agents
Patch : une portion de sol sur laquelle les tortues
peuent se situer et se dplacer. L`ensemble des
patchs orme le monde. Celui-ci est en 2D et diis
selon une grille circulaire de patchs
Lnironnement
Observateur : regarde de l`extrieur le monde des
tortues et des patchs ,n`est pas situ dans le monde,
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
TuforieI MefLogo
Suire le tutoriel n1 du manuel utilisateur :
1utorial 1 : sur la manipulation de Modeles ,jusqu`a la page
,
http://ccl.northwestern.edu/netlogo/docs/
,et rpondre aux questions reprises dans la suite du ppt ! ,
: bien partager otre cran en 3 entres :
- Une pour le tutorial NetLogo
- Une pour NetLogo
- Une pour le ppt
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
WoIf Sheep Predofion
Ne pas lire Sample Model: Party
\ol Sheep Predation est dans la Section
Biology des Samples Models
Aant d`ourir la simulation lire le texte
\lA1 IS I1 ,onglet Inormation, qui dcrit
le phnomene.
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
SumpIe ModeI: WoIf Sheep
Predution
Controlling the Model: Buttons
- I you like, experiment with the "setup" and "go" buttons
in the \ol Sheep Predation model.
- Do you ever get different results if you run the model
several times with the same settings ?
- Reponse :
- Pourquoi ? A partir d'observations trouver des
explications
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Adgusting Settings: SIiders und Switches
Lefs experimenf wifh fheir effecf on fhe
behovior of fhe modeI.
- Open \ol Sheep Predation i it's not open already.
- Press "setup" and "go" and let the model run or about a 100 time-
ticks. ,Note: there is a readout o the number o ticks right aboe the
plot.,
- Stop the model by pressing the "go" button.
- What happened to the sheep over time?
- Let's take a look and see what would happen to the sheep i we change
one o the settings.
- 1urn the "grass" switch on.
- Press "setup" and "go" and let the model run or a similar amount o
time as beore.
- What did this switch do to the model?
- Was the outcome the same as your previous run?
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Peod fhe confenfs of fhe Informution tub
- \hat would happen to the sheep population i there was
more initial sheep and less initial woles at the beginning
o the simulation
- 1urn the "grass" switch o.
- Set the "initial-number-sheep" slider to 100.
- Set the "initial-number-woles" slider to 20.
- Press "setup" and then "go".
- Let the model run or about 100 time-ticks.
- 1ry running the model seeral times with these settings.
- What happened to the sheep population?
- Did this outcome surprise you?
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
- What other sliders or switches can be adjusted
to help out the sheep population?
- Set "initial-number-sheep" to 80 and "initial-number-woles" to 50. ,1his
is close to how they were when you irst opened the model.,
- Set "sheep-reproduce" to 10.0.
- Press "setup" and then "go".
- Let the model run or about 100 time ticks.
- What happened to the wolves in this run?
Arrter de suire le tutorial a Controlling the
View ,ne pas tudier 1he size o the iew
.,
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Efude, onoIyse des modIes exisfonfs
sompIes modeI de MefIogo
- Catgorie biologie :
AN1S :
- Lire inormation tab
- Jouer aec le modele
- Dans le code ,onglet Procdure, retrouer la modlisation
des comportements aec architecture a subsomption us en
cours sur l`exemple de la rcolte de minerai
- Modiier le code : changer la position des sources de
nourritures, .
Christine Bourjot
UFR Math-InIo
MASTER M2 SCIENCES COGNITIVES
Universite de Nancy 2
Comprendre ef jouer ovec Ies
modIes suivonfs
- Catgorie biologie :
AIDS
- Catgorie sciences sociales :
party ,
segregation , rebellion et scatter

Vous aimerez peut-être aussi