private void UpdateThreshold(SchedulareState state = null) { //_threshold = state != null? state.Weight -1 : _threshold - 1; //_threshold = state.Weight * ALFA; _threshold = OpenSet.FirstOrDefault().Weight *ALFA; }