RHDM - Accessing Score Explanation via Public API

17 views
Skip to first unread message

Muneer Hameer

unread,
Sep 2, 2022, 9:39:20 AMSep 2
to OptaPlanner development
Hi,

I'm using RHDM (business central) on Openshift (ROSA). Do we have access to score explanation (Indictment Map, Constraint Match Totals) via public API? just like we have for problemfactchanges, getting best solution etc

If not yet, then are we able to at least print the return value for explainScore in RHDM logs? How would that setup look like in business central?

Thanks!

Muneer

Geoffrey De Smet

unread,
Sep 2, 2022, 9:59:46 AMSep 2
to optapla...@googlegroups.com

RHDM 7.12 contains OptaPlanner 8.11 which has the ScoreManager API:
  https://www.optaplanner.org/docs/optaplanner/latest/score-calculation/score-calculation.html#explainingTheScore

So this should work to quickly print something quick&dirty:
  System.out.println(ScoreManager.create(solverFactory).getSummary(solution));
As well as scoreManager.explainScore(solution) to expose it nicely via an API.
 


With kind regards,
Geoffrey De Smet

--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/1f258c21-569a-4a58-976d-26c64ccd8512n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages