Skip to content

Commit

Permalink
Fix: Clusterers did not set the solutionData
Browse files Browse the repository at this point in the history
  • Loading branch information
koalamitice committed Sep 6, 2024
1 parent 2fe0f24 commit 74a5fa4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,16 @@ protected Solution<String> solveCluster(
.solutionFileName("problem.sol")
.run(getProblemType(), solution.getId(), input);

if (combineProcessRunner.output().isEmpty() || !combineProcessRunner.success()) {
var result = combineProcessRunner.output();

if (result.isEmpty() || !combineProcessRunner.success()) {
solution.setDebugData(
combineProcessRunner.errorOutput().orElse("Unknown Error: Could not combine clusters."));
solution.fail();
return solution;
}

solution.setSolutionData(result.get());
solution.complete();
return solution;
}
Expand Down

0 comments on commit 74a5fa4

Please sign in to comment.