-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.h
More file actions
43 lines (39 loc) · 1.43 KB
/
Copy pathutils.h
File metadata and controls
43 lines (39 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef UTILS_H
#define UTILS_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "initial_population.h"
#include "genetic_algorithm.h"
/**
* @brief Debug function to print the path of a deliverer
* Outputs a formatted representation of a deliverer's path to stderr for debugging purposes
* @param path Pointer to the Path structure to print
* @param message Descriptive message to accompany the path output
*/
void debug_print_path(Path* path, const char* message);
/**
* @brief Print detailed information about parent individuals
* Outputs formatted information about both parents for debugging purposes
* @param parents Pointer to the Parents structure to print
*/
/*void print_parents(Parents* parents);*/
/**
* @brief Print detailed information about an individual
* Outputs formatted information about the individual including all paths and metrics
* @param individual Pointer to the Individual to print
*/
void print_individual(Individual* individual);
/**
* @brief Print formatted information about a single path
* Outputs path details including total time, distance, and node sequence
* @param path Path to print
*/
void print_path(Path* path);
/**
* @brief Print detailed information about an the population
* Outputs formatted information about the population including all individuals and metrics
* @param individual Pointer to the population to print
*/
void print_population(Population* population);
#endif