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