문제

I have a model which asks all agents once in go procedure and rest of producers start with a condition, if the agent has that condition will do the tasks.

To go
  ask agents 
    [
       Task1
       TASK 2
    ]
end 


To Task1
 if condition [...]

end


to Task 2
   if condition [...]

end

I can do this another way by making my conditions ask agents with [condition] and eliminate the ask in go procedure.

To go
         Task1
         Task1  
End 

To task1
 ask agents with [Condition1] [...]
end

to task2
    ask agents with [Condition2] [...]
end

I have done my entire model using first approach and it will be really time consuming to test it with the second one, I was wondering if anyone had ever find out the impact of these two approaches on performance (if there is any difference at all!)

도움이 되었습니까?

해결책

I would predict no performance difference.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top