Update optaplanner example
Moved to 8.24.0.Final version Removed deprecated drools calculation Added constraints stream solver Updated to solver config java api
@dupliaka The CI fails because the
optaplannertutorial can no longer be built using Java 8 (because OptaPlanner 8.24 is being built with Java 11).To fix that, go to the root
pom.xmland move two<module>optaplanner</module>elements fromdefault-firstandintegration-lite-firstprofiles todefault-jdk9-and-aboveandintegration-jdk9-and-aboveprofiles.See https://github.com/eugenp/tutorials#profile-based-segregation for explanation of the profiles.
@yurloc Thank you for noticing! Fixed
Thank you for your contribution @dupliaka and @yurloc. PR is merged and article is now updated.
Thank you very much! I have notice that there is no mention on ConstraintStream that is provided in test_whenConstraintStreamSolver. It is a major difference since the previous version and it would be much more consistent to mention it in the blog as well. You can mention in Scoring section telling simply that there is a better way to define constraints in the lambda function way that allows to cash results and calculate score faster. To do so you just need to define one class (see CourseScheduleConstraintProvider.java)
Thanks @dupliaka . We have opened an internal jira to look into this further.
Thanks @dupliaka . We have opened an internal jira to look into this further.
Great! Thanks for collaboration feel free to reach me out if you would need some additional assistance.