Optaplanner 6.3.0 变量侦听器损坏
Optaplanner 6.3.0 Variablelistener corruption
当运行 TW-VRP 示例测试"solveModel_cvrptw_100customers_AFastAssert" 在env 模式FULL_ASSERT 的示例部分,则显示以下非法状态:
java.lang.IllegalStateException: VariableListener corruption: the entity (TimeWindowedCustomer-1)'s shadow variable (TimeWindowedCustomer.arrivalTime)'s corrupted value (null) changed to uncorrupted value (161000) after all VariableListeners were triggered without changes to the genuine variables.
Probably the VariableListener class for that shadow variable (TimeWindowedCustomer.arrivalTime) forgot to update it when one of its sources changed after completedAction (Initial score calculated).
在 org.optaplanner.examples.vehiclerouting.app.VehicleRoutingPerformanceTest.solveModel_cvrptw_100customers_AFastAssert(VehicleRoutingPerformanceTest.java:64)
有什么帮助吗?
"corrupted value (null) changed to uncorrupted value (161000)"
看起来 null
没有在您的自定义 VariableListener 中正确传播。这可能是由于示例中的错误已在 PLANNER-500 和 this commit.
中修复
当运行 TW-VRP 示例测试"solveModel_cvrptw_100customers_AFastAssert" 在env 模式FULL_ASSERT 的示例部分,则显示以下非法状态:
java.lang.IllegalStateException: VariableListener corruption: the entity (TimeWindowedCustomer-1)'s shadow variable (TimeWindowedCustomer.arrivalTime)'s corrupted value (null) changed to uncorrupted value (161000) after all VariableListeners were triggered without changes to the genuine variables. Probably the VariableListener class for that shadow variable (TimeWindowedCustomer.arrivalTime) forgot to update it when one of its sources changed after completedAction (Initial score calculated).
在 org.optaplanner.examples.vehiclerouting.app.VehicleRoutingPerformanceTest.solveModel_cvrptw_100customers_AFastAssert(VehicleRoutingPerformanceTest.java:64)
有什么帮助吗?
"corrupted value (null) changed to uncorrupted value (161000)"
看起来 null
没有在您的自定义 VariableListener 中正确传播。这可能是由于示例中的错误已在 PLANNER-500 和 this commit.