Reputation: 39
Thanks to Nicholas and Seth for their help on my issue yesterday (Assign each number to 3 turtles). I've encountered a second problem and could use some advice.
To give you an idea of the model:
I am having trouble creating an agent set for each discipline contained in the question. I am using:
to give-an-answer ; turtle proc 2
if member? my-discipline question ; if the turtle's ID is one of the disicplines in the question
[ set expert my-discipline ] ; mark as expert.
end
I know that by creating an agent set for each discipline, I can use max-one-of to find the highest rated answer... but I can't get to that point!
Any help would be greatly appreciated!
John
Upvotes: 1
Views: 92
Reputation: 12580
turtles with [ member? my-discipline question ]
will be an agentset containing the turtles whose discipline is in the question.
Upvotes: 2