Example #1
0
 // запуск симуляції
 public void RunSimulation()
 {
     while (ContinueAlgorithm())
     {
         setCurrentAgent();
         RunIteration();
         statistic.IncreaseIterations();
         if (statistic.Iterations % 100 == 0)
         {
             statistic.AddAgentsCount(allAgents, statistic.Iterations);
             statistic.AddAgentsRate(allAgents, statistic.Iterations);
         }
     }
 }