Running into an issue with variable corruption on a chained variable model. The entity (Delivery{id=’3′, tasks=[…], previousDeliveryOrShift=Delivery{id=’2′, tasks=[…], previousDeliveryOrShift=Shift{id=’1′, startTime=2022-10-03T16:00}, deliveryTime=2022-10-03T16:27}, deliveryTime=2022-10-03T17:12})’s shadow variable (Delivery.deliveryTime)’s corrupted value (2022-10-03T17:10) changed to uncorrupted value (2022-10-03T17:12) after all variable listeners were triggered without changes to the genuine variables. I’ve tried using FULL_ASSERT with trace logging to see the move that is causing this
Tag: optaplanner
Nullable PlanningVariable causes all null solution
I’ve a business case to assign resources(employees) to some work requirements. Here are three domain classes to describe the problem: And a PlanningEntity and PlanningSolution class defines as follows: The simplify the problem, I added only one Constraint which scores -1 * (requirement’s amount) if no resources assigned to the requirement. The problem is that assignments in all solved ResourceSchedule
Can run in Intellij, but jar file fails
Instead of running Quarkus, I’m running OptaPlanner through a Main class entry point in Kotlin. This works great within Intellij where I have a simple Run Configuration set up for it. However, when I create an Intellij artifact for a jar and try to run it, I get this: In solverConfig.xml I’m using <domainAccessType>REFLECTION</domainAccessType> because I cannot get Gizmo to
Is it possible to define PlanningVariables programmatically (at runtime) instead of through annotations?
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
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
Error creating bean with name ‘solverManager’, Unsatisfied dependency expressed through constructor parameter
JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures using Spring-boot framework. Jhipster has “straight to go” script to deploy on google cloud. Optaplanner is an AI library which helps solve planning and scheduling problems. My goal is to use Jhipster to develop quickly a platform which resort to optaplanner to solve
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