public Search(AdvanceGameInfo agi, COMMON_MAP map) { this.agi = agi; this.commonMap = map; rand = new Xorshift(); storeDataDic = new Dictionary<int, StoreData>(); searchQueId = new ConcurrentQueue<int>(); nextQueId = new ConcurrentQueue<int>(); answerId = new Dictionary<int, StoreData>(); saveStoreDataDic = new Dictionary<int, StoreData>(); problemEmptySize = agi.GetAgiFields().GetEmptySize(); /* 問題のEMPTYサイズ */ depthSize = 0; searchTimes = 0; AnnealingRate = new int[11] { ANNEALING_RATE_0, ANNEALING_RATE_10, ANNEALING_RATE_20, ANNEALING_RATE_30, ANNEALING_RATE_40, ANNEALING_RATE_50, ANNEALING_RATE_60, ANNEALING_RATE_70, ANNEALING_RATE_80, ANNEALING_RATE_90, ANNEALING_RATE_100 }; setConstData(map); this.fileName = map.FILENAME; smallOrderList = new int[agi.GetAgiStoneList().GetListSize()]; RetrySearch = new Queue<List<StoreData>>(); }
public Search() { agi = null; commonMap = null; smallOrderList = null; rand = new Xorshift(); storeDataDic = new Dictionary<int, StoreData>(); searchQueId = new ConcurrentQueue<int>(); nextQueId = new ConcurrentQueue<int>(); answerId = new Dictionary<int, StoreData>(); saveStoreDataDic = new Dictionary<int, StoreData>(); problemEmptySize = 0; depthSize = 0; searchTimes = 0; AnnealingRate = new int[11] { ANNEALING_RATE_0, ANNEALING_RATE_10, ANNEALING_RATE_20, ANNEALING_RATE_30, ANNEALING_RATE_40, ANNEALING_RATE_50, ANNEALING_RATE_60, ANNEALING_RATE_70, ANNEALING_RATE_80, ANNEALING_RATE_90, ANNEALING_RATE_100 }; setConstDataDefault(); fileName = "default.txt"; RetrySearch = new Queue<List<StoreData>>(); }