Can optaplanner solve partly pre-assigned planning entities using Drools rules?

跟風遠走 提交于 2019-12-25 03:15:46

问题


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?

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)?


回答1:


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



来源:https://stackoverflow.com/questions/29968286/can-optaplanner-solve-partly-pre-assigned-planning-entities-using-drools-rules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!