Skip to content

Commit 2539660

Browse files
authored
Small updates
Small update to the function that writes the resulting matching.
1 parent 1beded1 commit 2539660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AP_Tools.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ void AS_Save_matching_Text(AuctionSolver *Instance, char *file_path)
316316
fprintf(output_file, "time %f\n", Instance->solving_time);
317317
// Save the matching edge by edge, space separated as: "person_index object_index cost"
318318
for (int object_i = 0; object_i < Instance->num_objects; ++object_i)
319-
fprintf(output_file, "f %d %d %.0lf\n", Instance->Matching[object_i], object_i, Instance->Matching_costs[object_i]);
319+
fprintf(output_file, "%d,%d,%.0lf\n", Instance->Matching[object_i], object_i, Instance->Matching_costs[object_i]);
320320

321321
fclose(output_file);
322322
}

0 commit comments

Comments
 (0)