scoreManager.explainScore(solution) not working in Optaplanner - optaplanner

in the current Documentation of Optaplanner (7.40.0.Final) it says:
"The easiest way to explain the score during development is to print the return value of explainScore()"
When I create a scoreManager it doesn't have the method explainScore()
How do I get the explanation of the score in the Terminal? Where do I have to call the scoreManager?
I am working with Quarkus and my problem is very similar to the TimeTabling Problem.
Best regards and thank you in advance
Justin

Are you using the version coming with the Quarkus Platform BOM? Because in this case, it's 7.39.0.Final and that could explain your issue.
You can define the version yourself and upgrade to 7.40.0.Final. It might work, Geoffrey would be able to confirm.
He will also be able to tell you if he plans to upgrade Quarkus to 7.40.0.Final for 1.7.

That method was introduce recently. OptaPlanner 7.40.0.Final, the same version as the docs you're reading, definitely has it:
https://github.com/kiegroup/optaplanner/blob/7.40.0.Final/optaplanner-core/src/main/java/org/optaplanner/core/api/score/ScoreManager.java#L81

Related

Code with me plugin with running application locally

Is there a way to do that (run same application with host and test output with postman) or can you advise me if there are alternative ones ?
This is Max from JetBrains Code With Me team. Can you please rephrase the question and provide a little bit more detail? That way we'll be able to help you out quicker.

karate and report portal integration

#peter Thomas Not sure if you have seen/heard of reportportal - https://github.com/reportportal/reportportal. This is interesting and It would be great if karate integrates with it. I also saw some one raising an issue there - https://github.com/reportportal/agent-java-cucumber/issues/18. I will try integrating and let you know and I am just suggesting something to you which can be a good value add. Your thoughts? Thanks.
Well we are deprecating the TestNG runner so that may be an issue unless there is community contribution: https://twitter.com/KarateDSL/status/1025067559027179521

How to use step object in Codeception v2.1

I'm a starter to learn Codeception and I found that officical guide didn't tell me anything about the step object.
The change log of version 2.1 says
all support classes moved to tests/_support by default. Actors, Helpers, PageObjects, StepObjects, GroupObjects to follow PSR-4 naming style
So anybody can tell me how to use step object in the latest version? Or give me a simple example about that? Thanks a lot.
Here should be what you are looking for:
http://codeception.com/docs/06-ReusingTestCode#StepObjects

Lua and IntelliJ

Do someone know a good plugin to program Lua using IntelliJ? I'm using the one from sylvanaar but it is painfully slow.
UPDATE: slowness due to code styling.
UPDATE 2: I gave up on using LUA on IntelliJ I found that https://studio.zerobrane.com/ is a more fit to what I need and it is very fast.
There is also the EmmyLua plugin, which appears relatively stable and receives regular updates:
Website
GitHub
JetBrains Plugins Repository
I don't think there are any alternatives for this plugin.
Maybe that's the reason why my IDEA is hanging for like 8 seconds when appending a new line...

NHibernate 1.2 Upgrade assistance

I need to upgrade from NHibernate 1.2.x to the latest version. Can someone help me out by either pointing me into the right direction, explain to me what I need to do, or just shoot me for using 1.2 when it's almost 2013.
Please.
Easy Answer: Have you tried just dropping in the latest version? 3.x should be somewhat compatible with what you have.
Hard Answer: Download Fluent NHibernate and get ready for some fun learning. It all depends on why you feel the need to upgrade.
The release notes in the download list know and possible breaking changes. It may be worth looking through. Other than that, I would suggest just dropping the new files in and see what happens.