Skip to content

Tag: optaplanner

Optaplanner chained variable corruption

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:…

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…

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 …