Skip to content

Commit

Permalink
chore: log other places
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloemendaal committed Aug 29, 2024
1 parent 40701fa commit 8b195ad
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/algorithms/heuristics/heuristics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All rights reserved (see LICENSE).
*/

#include <algorithm>
#include <iostream>
#include <set>

#include "algorithms/heuristics/heuristics.h"
Expand Down Expand Up @@ -121,6 +122,11 @@ Eval basic(const Input& input,
continue;
}

std::cout << "A:"
<< current_r.task_count_of_type(current_job, input.jobs)
<< "," << vehicle.max_tasks_for(current_job.task_type)
<< std::endl;

if (current_r.task_count_of_type(current_job, input.jobs) +
addition_to_tasks >
vehicle.max_tasks_for(current_job.task_type)) {
Expand Down Expand Up @@ -241,6 +247,11 @@ Eval basic(const Input& input,
continue;
}

std::cout << "B:"
<< current_r.task_count_of_type(current_job, input.jobs)
<< "," << vehicle.max_tasks_for(current_job.task_type)
<< std::endl;

if (current_job.type == JOB_TYPE::SINGLE &&
current_r.size() + 1 <= vehicle.max_tasks &&
current_r.task_count_of_type(current_job, input.jobs) + 1 <=
Expand Down Expand Up @@ -581,6 +592,11 @@ Eval dynamic_vehicle_choice(const Input& input,
continue;
}

std::cout << "C:"
<< current_r.task_count_of_type(current_job, input.jobs)
<< "," << vehicle.max_tasks_for(current_job.task_type)
<< std::endl;

if (current_r.task_count_of_type(current_job, input.jobs) +
addition_to_tasks >
vehicle.max_tasks_for(current_job.task_type)) {
Expand Down Expand Up @@ -702,6 +718,11 @@ Eval dynamic_vehicle_choice(const Input& input,
continue;
}

std::cout << "D:"
<< current_r.task_count_of_type(current_job, input.jobs)
<< "," << vehicle.max_tasks_for(current_job.task_type)
<< std::endl;

if (current_job.type == JOB_TYPE::SINGLE &&
current_r.size() + 1 <= vehicle.max_tasks &&
current_r.task_count_of_type(current_job, input.jobs) + 1 <=
Expand Down

0 comments on commit 8b195ad

Please sign in to comment.