저는 Railsback과 Grimm의 에이전트 기반 및 개별 기반 모델링이라는 책에서 ABM을 배우고 있습니다. 이 책에 따르면, 최초의 완전한 모델들은 다음과 같습니다 통해 걸어 :NetLogo 5.3.1, 오류 메시지 "예상 ["
globals
turtles-own
[
time-since-last-found
]
num-clusters
]
[
time-since-last-found
]
[
num-clusters
]
to setup
clear-all
set num-clusters 4
ask n-of 4 patches
[
ask n-of 20 patches in-radius 5
[
set pcolor red
]
]
create-turtles 2
[
set size 2
set color yellow
set time-since-last-found 999
]
end
to go
ask turtles [search]
to search
if-else time-since-last-found <= 20
[right (random 181) -90]
[right (random 21) -10]
forward 1
ifelse pcolor = red
[
set time-since-last-found 0
set pcolor yellow
]
[
set time-since-last-found time-since-last-found + 1
]
end
이 책은 내가 간단한 버섯 사냥 모델을 실행할 수 있어야합니다 말한다. 하지만 대신, 나는 여분의 [, "예상 된 [".
어디에 넣어야하는지 잘 모르겠습니다. 더 많은 것은 인 무엇, 나는 진짜로 저에게 그것을 필요로하지 않는다는 것을 보이고 나는 왜 나가 말하고 있는지 이해하지 않는다.
감사합니다!
당신은 아마 그 대답을 행운으로 만들어야합니다. –
작성 완료, 감사합니다. Nicolas. –