timefold-solver
timefold-solver copied to clipboard
ScoreAnalysis.summary() alternative that shows all constraints/matches etc
Currently it only shows the top 3 or so.
For debugging purposes (User Experience), it's often handy to be able to show them all, or the top 20. Not all cases have 700mb of matches.
Proposal A)
ScoreAnalysis.summary(int topLimit)
to get them all, use summary(Integer.MAX_VALUE)
I was having this issue, too.
My workaround to get the output as string with more constraint matches and indictments:
ScoreExplanation<Schedule, HardMediumSoftScore> explanation = solutionManager.explain(solution);
String explanationString = DefaultScoreExplanation.explainScore(explanation.getScore(), explanation.getConstraintMatchTotalMap().values(), explanation.getIndictmentMap().values(), 200, 200);
Do you mind if I also take a look on this issue if it hasn't already been implemented? Thanks!
@PatrickDiallo23 Contributions are welcome!