[英]Dynamic constraint satisfaction in OptaPlanner
I am evaluating OptaPlanner for a planning problem I have. 我正在评估OptaPlanner的规划问题。 I have seen several responses to this topic, but nothing quite like I am looking for. 我已经看到了对该主题的一些回应,但没有找到与我所寻找的完全相同的内容。
I am looking for the capability to extend the problem on the fly; 我正在寻找即时解决问题的能力; that is, as the planner is solving a problem. 也就是说,当计划者正在解决问题时。
For example, in the CloudComputing example, I would like to be able to add computers on the fly (to a point) while the problem is being solved. 例如,在CloudComputing示例中,我希望能够在解决问题的同时(即时)添加计算机。 The easiest case is that the problem is initially over-constrained and to resolve this I would like to be able to add computers, and then replan. 最简单的情况是该问题最初受到过度限制,为解决此问题,我希望能够添加计算机,然后重新计划。
Or, I would like to be able to add a lecture, or a lecturer in one of the scheduling problems, etc. 或者,我希望能够添加一个讲座,或安排任何一个调度问题的讲师,等等。
It seems like the OptaPlanner requires a static number of entities / variables at solve time. 看来OptaPlanner在求解时需要静态数量的实体/变量。
Any pointers would be appreciated. 任何指针将不胜感激。
Take a look at the Real-time planning section of the OptaPlanner User Guide. 查看OptaPlanner用户指南的“ 实时计划”部分。
You could also look at the Travelling Salesman Problem example in optaplanner-examples
. 您还可以在optaplanner-examples
查看Traveling Salesman Problem optaplanner-examples
。 Specifically, look at the org.optaplanner.examples.tsp.swingui.TspPanel
class and traverse down from there. 具体来说,查看org.optaplanner.examples.tsp.swingui.TspPanel
类,然后从那里向下遍历。 It's a pretty standard implementation of real-time planning AFAIK. 这是实时计划AFAIK的相当标准的实现。 I can also recommend to run the TSP example first to "see" how it works. 我还建议先运行TSP示例,以“了解”它的工作方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.