コード例 #1
0
 /// <summary>
 /// 次の世代に移る準備
 /// </summary>
 private void SetNextGeneration()
 {
     AvgReward = SumReward / TotalPopulation;
     GenPopulation();
     GenBestCatchCount = 0;
     SumReward         = 0;
     GenBestRecord     = -9999;
     Agents.ForEach(a => a.Reset());
     SetStartAgents();
     UpdateText();
 }
コード例 #2
0
 public void Update()
 {
     Agents.ForEach(agent => agent.Update());
 }