Honestly, I haven’t tried much as I must have completely missed (or failed to recognize) the relevant sections in the docs. Here is why I’m asking: I have a working domain model for a given optimization. I can use the domain for a very similar optimization while changing the PlanningVariable. Instead of having 2 almost identical domains which only differ
Tag: optaplanner
Optaplanner – spring BeanCreationException
I’m migrating Optaplanner from v7.x to v8.14 on a project that uses spring-boot (as a web api). I’ve added the optaplanner-spring-boot-starter dependency to the project, however when starting the application, I got the following error : The project is in two separated modules, one with everything related to Optaplanner (the config.xml, the .drl, the Solution, etc), the other is the
OptaPlanner Multithreading: Can I retrieve internally resolved “moveThreadCount” for reproducibility?
OptaPlanner v8.0.0.Final I want to set my OptaPlanner engine configs’ moveThreadCounts to AUTO, but I need to be able to reproduce runs even if it means I must take the moveThreadCount value from the logs/stdout/whatever (that is the plan). I see the value is resolved in DefaultSolverFactory::buildSolver line 82: This value is then saved to a HeuristicConfigPolicy on line 90
Optaplanner and Quarkus solver config update
I’m working on a project with quarkus and optaplanner, and I’m trying to access and modify the configuration of the solver, to add heuristics, change search algorithm etc. I’m using a solverJob and a …
Is it possible to verify already existing solution by OptaPlanner to check how may rules get broken?
Here the already existing solution is generated by any other codebase/tool but we can adjust the attribute as per requirement for OptaPlanner. Main aim is to verify that existing solution is breaking …
Optaplanner – NullPointerException when creating jar file
My program works fine from my IDE (IntelliJ) but for some reason, when I try to create a jar file I get following error when I run the program from a terminal: Exception in thread “main” java.lang.NullPointerException at org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig.buildDroolsScoreDirectorFactory(ScoreDirectorFactoryConfig.java:461) org.optaplanner.core.config.score.director.ScoreDirectorFactoryConfig.buildScoreDirectorFactory(ScoreDirectorFactoryConfig.java:331) org.optaplanner.core.config.solver.SolverConfig.buildSolver(SolverConfig.java:220) org.optaplanner.core.impl.solver.AbstractSolverFactory.buildSolver(AbstractSolverFactory.java:57) org.optaplanner.EmployeeRoster.main(EmployeeRoster.java:31) This is my line 31 in EmployeeRoster: SOLVER_CONFIG_XML is a String containing my path for my XML