前段时间我们将 OptaPlanner 分叉为 Timefold。我们经常收到这样的问题:
如何将我的 OptaPlanner 代码库迁移到 Timefold?
我需要手动更改所有导入语句和依赖项吗?
无需手动更改导入语句、依赖项等。只需运行一条命令:
选择正确的 Timefold 版本:
从这里复制粘贴 Maven 或 Gradle 命令。对于 Maven,它看起来像这样:
mvn org.openrewrite.maven:rewrite-maven-plugin:4.45.3:run -Drewrite.recipeArtifactCoordinates=ai.timefold.solver:timefold-solver-migration:0.8.38 -Drewrite.activeRecipes=ai.timefold.solver.migration.ToLatest
在您的应用程序中运行求解器。验证分数计算速度更快现在。看最后一条日志信息:
INFO Solving ended: ... score calculation speed (103322/sec) ...
提交本地更改。