Skip to content

Commit

Permalink
update log and default config
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Apr 2, 2024
1 parent 3e73666 commit 0454f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ScheduledModeChoiceConfigGroup extends ReflectiveConfigGroup {
@Parameter
@Positive
@Comment("Number of iterations to be scheduled")
private int scheduleIterations = 15;
private int scheduleIterations = 24;
@Parameter
@PositiveOrZero
@Comment("Number of iterations between scheduled mode choice")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ 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. Increase schedule length or reduce top k.");
log.warn("Not enough plans to satisfy target share. Required {}. Increase schedule length or reduce top k.",
Arrays.toString(target.required));

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

Expand Down

0 comments on commit 0454f80

Please sign in to comment.