Skip to content

Commit

Permalink
fix: non-existent methods referenced for score explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
triceo authored and rsynek committed Dec 14, 2023
1 parent 64d51cf commit 10ba396
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The easiest way to do that during development is to print the score summary:
[source,java,options="nowrap"]
----
SolutionManager<CloudBalance, HardSoftScore> solutionManager = SolutionManager.create(solverFactory);
System.out.println(solutionManager.getSummary(solution));
System.out.println(solutionManager.explain(solution));
----

For example in conference scheduling,
Expand Down Expand Up @@ -196,7 +196,7 @@ get the `Indictment` map from the ``ScoreExplanation``:
[source,java,options="nowrap"]
----
SolutionManager<CloudBalance, HardSoftScore> scoreManager = SolutionManager.create(solverFactory);
ScoreExplanation<CloudBalance, HardSoftScore> scoreExplanation = solutionManager.explainScore(cloudBalance);
ScoreExplanation<CloudBalance, HardSoftScore> scoreExplanation = solutionManager.explain(cloudBalance);
Map<Object, Indictment<HardSoftScore>> indictmentMap = scoreExplanation.getIndictmentMap();
for (CloudProcess process : cloudBalance.getProcessList()) {
Indictment<HardSoftScore> indictment = indictmentMap.get(process);
Expand Down

0 comments on commit 10ba396

Please sign in to comment.