Пример #1
0
        /// <summary>
        /// 生成とラウンド開始時に呼び出してagentsetを初期化.
        /// </summary>
        /// <param name="network"></param>
        /// <param name="agent_set"></param>
        public void Initialize(I_Network network, I_AgentSet agent_set)
        {
            agent_set.InitBelief();
            agent_set.InitOpinion();
            agent_set.InitCounts();
            agent_set.InitRoundInfo();
            this.SurpriseIndicatorSet.Initialize();

            this.MyPlayOneStep.Initialize();
            this.CandidateSetList = GeneCanWeights.Generate(network, agent_set);

            this.SurpriseIndicatorSet.SetWeightDicList(this.CandidateSetList, network);
            var wei_dic_list = this.SurpriseIndicatorSet.WeightDic;

            agent_set.SetInitWeightDicList(wei_dic_list);
        }
Пример #2
0
        public void Initialize(I_Network network, I_AgentSet agent_set)
        {
            agent_set.InitBelief();
            agent_set.InitOpinion();
            agent_set.InitCounts();
            agent_set.InitRoundInfo();


            this.MyPlayOneStep.Initialize();

            this.CandidateSetList = GeneCanWeights.Generate(network, agent_set);
            var weight_list = this.CandidateSetList.Select(can => can.GetCanWeight(can.InitSelectCanIndex)).ToList();

            //weight_list = weight_list.Select(w => 0.8).ToList();

            agent_set.SetInitWeightList(weight_list);
        }