Is it possible to solve planning problems of a different types with timeFold/optaplanner with Quarkus?

150 views Asked by At

I'm quite new in optaplanner/timeFold and I've faced with problem like this:

java.lang.RuntimeException: java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
        [error]: Build step ai.timefold.solver.quarkus.deployment.TimefoldProcessor#recordAndRegisterBeans threw an exception: java.lang.IllegalStateException: Multiple classes ([Model1.domain.Solution1Table, Model2.domain.Solution2Table]) found with a @PlanningSolution annotation.

I have two different xml-configurations in src\main\resources for each solutionClass.

According to this I should create a new instance of the SolverManager to solve second problem, but I don't understand is it possible to do that with Quarkus.

1

There are 1 answers

0
Alexey On BEST ANSWER

Looks like I should just replace timefold-solver-quarkus-benchmark with timefold-solver-core in dependency in pom.xml.