Skip to content
Advertisement

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

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

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 – 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

Advertisement