示例#1
0
        public Solver(Timetable timetable)
        {
            Timetable_ = timetable;

            Comparer_ = new Solver.SolutionComparer();
            Filters_  = new List <Solver.Filter>();
            Default();
        }
示例#2
0
        public Solver(Timetable timetable, Solver other)
        {
            Timetable_ = timetable;

            this.Comparer_ = other.Comparer_.Clone();
            this.Filters_  = new List <Solver.Filter>(other.Filters_);

            this.Solutions_  = new List <Solution>(Solutions_);
            this.MaxResults_ = other.MaxResults_;

            // other variables are initiated during solving
        }