Optaplanner可以使用Drools规则解决部分预先分配的计划实体吗? [英] Can optaplanner solve partly pre-assigned planning entities using Drools rules?

查看:279
本文介绍了Optaplanner可以使用Drools规则解决部分预先分配的计划实体吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用的是Optaplanner 6.2随时间变化的车辆路径问题示例.

We are using the time dependent vehicle routing problem example of Optaplanner 6.2.

在我们的案例中,领域模型由活动(对应于客户)和技术人员(对应于车辆)组成.

In our case the domain model consists of activities (corresponding to customers) and technicians (corresponding to vehicles).

是否可以通过将某些活动预先分配给某些技术人员来初始化优化,而不会分配其余活动?

Is it possible to initialize an optimization with partly pre-assigned activities to certain technicians, whereby the rest of activities is not assigned?

这将与optaplanner的情况(cvrptw-case)相对应,当我们停止求解或等待求解,然后在已求解的xml文件末尾添加未分配的活动时. 然后,该文件将用作输入文件进行进一步的优化.在这里,必须锁定已分配的活动.

This would correspond to the case of optaplanner (cvrptw-case) when we stop the solving or wait for the solution, and then add at the end of the solved xml-file not assigned activities. This file would then be used for the further optimization as input file. Here it is mandatory to lock the already assigned activities.

可以这样的起始状态:初始锁定连续 链开始处的预定义活动的链部分,不应重新安排-而其余活动应进行优化,并放在预先分配的活动之后,放入现有链中,并使用增量约束规则进行处理(流口水)?

Can such a starting state: initially locked consecutive chain-parts of pre-defined activities at the chain-start which should not be rearranged - while the rest activities should be optimized and put after the pre-assigned activities into the existing chains, handled with incremental constraint rules (with Drools)?

推荐答案

通读本手册重复计划"一章的不可移动计划实体"和非易失性重新计划"部分.解释得很好.

Read over the Immovable Planning Entities and Nonvolatile Replanning sections of the Repeated Planning chapter of the manual. It's fairly well explained.

这篇关于Optaplanner可以使用Drools规则解决部分预先分配的计划实体吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆