_NetLogo
_______________________________________
Uno strumento semplificato: NetLogo
_______________________________________
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
1
digressioni su automi cellulari e
tartarughe
Digressioni su
automi cellulari …
con il gioco Vita (0->1 se 3 vicini; 1->1 con
2, 3 vicini; altrimenti 0->0; 1->0)
utilizzando Life32, da
http://psoup.math.wisc.edu/Life32.html
… e tartarughe, con Logo, StarLogo e NetLogo
NetLogo, http://ccl.northwestern.edu/netlogo/
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
2
NetLogo
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
3
NetLogo es. 1
Segregation
Provare 30, 50, 70%
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
4
Voting
NetLogo es. 2
This model is a simple cellular automaton
that simulates voting distribution by
having each patch take a "vote" of its eight
surrounding neighbors, then perhaps
change its own vote according to the
outcome.
If the CHANGE-VOTE-IF-TIED? switch
is on, then in the case of a tie, the central
patch will always change its vote.
If the AWARD-CLOSE-CALLS-TOCLOSER? switch is on, then if the result
is 5-3, the central patch votes with the
losing side instead of the winning side.
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
5
NetLogo es. 3
Code Example \ Random walk
example
La tartaruga di Logo
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
6
Party
NetLogo es. 4
This program models a cocktail party. The
party is made up of groups of both men and
women. The partygoers have a TOLERANCE
that defines their comfort level with a group
that has members of the opposite sex. If they
are in a group that has a higher percentage of
people of the opposite sex than their
TOLERANCE allows, then they are considered
"uncomfortable", and they leave that group to
find another group. This action continues until
everyone at the party is "comfortable" within
their group.
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
7
Artificial Financial Market
NetLogo es. 5
If individuals were the agents of the EMH the
sentiment they would form would reflect only
the news. However, in our model, of
heterogeneous and boundedly rational agents,
to this sentiment contribute not only the news
themselves, but also the verbalized or someway
transmitted sentiments of the individual's
closest colleagues, and an own idiosyncratic
aspect of the individual which influences his
interpretation of both the news and his friends
sentiments, thus, these elements together lead to
the sentiment, that the individual is aware of,
and that leads to the final decision to buy or
sell.
16 maggio 2006
Master in economia e politica
sanitaria - Simulazione per la sanità
8
Scarica

NetLogo