Skip to content

Commit

Permalink
global max-ticks is now a slider
Browse files Browse the repository at this point in the history
* The global variable `max-ticks` has been changed from a hidden variable which was set during the setup to a global variable whose value can be adjusted via a slider in the interface
* The BehaviorSpace runs have set this variable to the previous and new default: 10000
  • Loading branch information
daimpi committed Jun 28, 2017
1 parent fd1911f commit 389868c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions SocNetABM.nlogo
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ turtles-own [a b theory-jump times-jumped cur-best-th current-theory-info

globals [th-i-signal indiff-count crit-interactions-th1 crit-interactions-th2
confidence-cutoff converged-ticks last-converged-th
max-ticks converge-reporters converge-reporters-values
converge-reporters converge-reporters-values
run-start-scientists-save rndseed g-confidence g-depressed-confidence]

__includes ["protocol.nls"]
Expand Down Expand Up @@ -93,7 +93,6 @@ end
; initializes the hidden variables (= not set in the interface)
to init-hidden-variables
set confidence-cutoff 1 - (1 / 10 ^ 4)
set max-ticks 10000
end


Expand Down Expand Up @@ -602,6 +601,21 @@ NIL
NIL
0

SLIDER
211
457
383
490
max-ticks
max-ticks
0
100000
10000.0
100
1
NIL
HORIZONTAL

@#$#@#$#@
# UNDER CONSTRUCTION

Expand Down Expand Up @@ -1181,6 +1195,9 @@ NetLogo 6.0.1
<enumeratedValueSet variable="crit-jump-threshold">
<value value="1"/>
</enumeratedValueSet>
<enumeratedValueSet variable="max-ticks">
<value value="10000"/>
</enumeratedValueSet>
</experiment>
<experiment name="crit-interact-base-run" repetitions="10000" runMetricsEveryStep="false">
<setup>setup new-seed</setup>
Expand Down Expand Up @@ -1237,6 +1254,9 @@ NetLogo 6.0.1
<enumeratedValueSet variable="crit-jump-threshold">
<value value="1"/>
</enumeratedValueSet>
<enumeratedValueSet variable="max-ticks">
<value value="10000"/>
</enumeratedValueSet>
</experiment>
</experiments>
@#$#@#$#@
Expand Down

0 comments on commit 389868c

Please sign in to comment.