@PlanningEntity
public class BinAvailablity {
private int id;
private Interval interval;
private Bin bin;
private int roomMax;
@InverseRelationShadowVariable(sourceVariableName = "binAvailablity")
privat
我正在尝试为我的Optaplanner设置启用多线程。文档指出,在这样做的过程中,应该使用字段或getter上的@PlanningId作为唯一的ID来注释每个规划实体和规划值类。
下面,作为一个规划值类。
public class TimeSlot {
@PlanningId
private String id; //Unique for each instance, and initialized in constructor
...
}
并且,在属性文件中启用了多线程。
optaplanner.solver.move-thread-count=AUTO
当我运行我的代码时,我得到了以下
我正在解决车辆路径问题的一个变化。该模型一直有效,直到我实施了一项更改,其中某些车辆和/或停车可能仍然没有分配,因为建筑过滤器不允许移动,因为时间窗口的考虑(不允许晚到)。
问题的大小是2辆卡车/3站。truck_1有两个站点(Stop_1和Stop_2)被分配给它,因此有一个卡车和一个站点没有被分配,因为truck_2会晚到Stop_3。
我有以下错误:
INFO o.o.c.i.c.DefaultConstructionHeuristicPhase - Construction Heuristic phase (0) ended: step total (2), time spent (
我在一个Spring/Optaplanner应用程序上获得了一个新的错误消息,该应用程序一直在运行,没有发生我不明白的事件:
编辑: Optaplanner版本为8.19.0.Optaplanner引导: 2.2.7.RELEASE
您正在尝试使用真理维护系统而不导入它。请将org.drools:drools模块添加到类路径中。]
Caused by: java.lang.IllegalStateException: There is an error in a scoreDrl or scoreDrlFile.
2022-10-24T20:49:11.164109+00:00 app[we
我正在使用optaplanner spring boot starter来解决员工排班问题。我有两个类,员工和计划实体轮班。目前,我正在使用如下所示的约束提供程序根据员工的技能水平为他们分配班次。 public class ConstraintProvider implements
org.optaplanner.core.api.score.stream.ConstraintProvider {
@Override
public Constraint[] defineConstraints(ConstraintFactory constraint