Exemple #1
0
        public void CalculateSolutionPenalty(List <Node> nodesToEvaluate)
        {
            bool enableViolTracking = true;

            if (nodesToEvaluate == null)
            {
                throw new NullReferenceException();
            }
            scheduleEvaluator = new ScheduleEvaluator(inputDataLocal);
            foreach (Node node in nodesToEvaluate)
            {
                conditions.Clear();
                BuildConditionsList(node.NurseId);
                node.Violations = new List <string>();
                int nodeCost = scheduleEvaluator.GetCost(node, conditions, enableViolTracking);
            }
        }
Exemple #2
0
 /// <summary>
 /// Evalutador overloaded constractor
 /// </summary>
 /// <param name="inputData"></param>
 /// <param name="nurseId"></param>
 public Evalutador(SchedulingPeriod inputData, int nurseId) : this(inputData)
 {
     scheduleEvaluator = new ScheduleEvaluator(inputDataLocal);
     conditions.Clear();
     BuildConditionsList(nurseId);
 }