是否可以使用 Quarkus 的 timeFold/optaplanner 解决不同类型的规划问题?

问题描述 投票:0回答:1

我是 optaplanner/timeFold 的新手,我遇到过这样的问题:

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.

我在 src\main 中有两个不同的 xml 配置 每个解决方案类别的资源。

根据this我应该创建一个SolverManager的新实例来解决第二个问题,但我不明白是否可以使用Quarkus做到这一点。

quarkus optaplanner timefold
1个回答
0
投票

看起来我应该将 pom.xml 中的依赖项中的

timefold-solver-quarkus-benchmark
替换为
timefold-solver-core

© www.soinside.com 2019 - 2024. All rights reserved.