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:…
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) i…
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…
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. Inst…
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 …
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…
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::buildSolve…
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.buildDr…