Skip to content

Commit

Permalink
Probabbilistic reevaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiszczak committed Mar 1, 2023
1 parent 1cf4599 commit e29f32f
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions cooperation_diversity_reputation.nlogo
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ end
;;------------------------------------------------------------------------------------
to go
;; check if the neighborhoods should be chooes each round
;; TODO: implement random selection of patches
if reevaluate-neighborhood [
if random-float 1.0 < p-rev [
ask patches [
choose-random-neighborhood
]
Expand Down Expand Up @@ -157,7 +156,7 @@ end
to setup-patches
ask patches [
;; initail assignement of the neighborhood
choose-neighborhood
choose-random-neighborhood

;; initialize the income
set income 0
Expand Down Expand Up @@ -491,7 +490,7 @@ synergy-factor
synergy-factor
0
10
5.9
4.6
0.1
1
NIL
Expand Down Expand Up @@ -598,19 +597,34 @@ CHOOSER
imitation-policy
imitation-policy
"fermi-dirac" "linear"
1
0

SWITCH
13
331
253
209
364
reevaluate-neighborhood
reevaluate-neighborhood
reevaluate-neighborhs
reevaluate-neighborhs
0
1
-1000

SLIDER
233
390
405
423
p-rev
p-rev
0
0.01
0.001
0.001
1
NIL
HORIZONTAL

@#$#@#$#@
## WHAT IS IT?

Expand Down

0 comments on commit e29f32f

Please sign in to comment.