Skip to content

Commit

Permalink
improve log message
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Apr 2, 2024
1 parent 0454f80 commit 1bed7c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ public Map<Id<Person>, List<PlanCandidate>> solve(Map<Id<Person>, List<PlanCandi
int switchTarget = (int) (targetSwitchShare * agents.stream().mapToInt(a -> a.length).sum());

if (Arrays.stream(target.required).anyMatch(v -> v > 0))
log.warn("Not enough plans to satisfy target share. Required {}. Increase schedule length or reduce top k.",
Arrays.toString(target.required));
log.warn("Not enough plans to satisfy target share. Increase schedule length, reduce top k, or increase mode asc.");

Map<Id<Person>, List<PlanCandidate>> result = new LinkedHashMap<>();

Expand Down

0 comments on commit 1bed7c6

Please sign in to comment.