本文介绍了我如何使用Drools Planner?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个日程安排问题,每个学生表达他对讲座的偏好,同时为所有学生生成课程时间表(如果可以的话,以批处理模式)。

I have a scheduling problem where each student expresses his preferences for a lecture and a course timetable is generated for all of the students at the same time (in a batch mode if I may).

根据我的阅读并理解,Drools Planner非常适合解决此类问题。我在我的Eclipse IDE中安装了Drools和GEF。一切都很好。不幸的是,我无法弄清楚如何构建一个简单的项目。

From what I read around and understand, Drools Planner is very well suited to solve this type of problem. I installed Drools and GEF into my Eclipse IDE. Everything loads just fine. Unfortunately, I can not figure out how to build a simple project.

我在网上查了参考资料,找到了Drools Planner的例子,看起来很棒。但是,除了一些代码片段之外,我没有找到任何可以引导人们完成简单案例的好教程。

I looked online for references and found Drools Planner examples, which look and work great. However, I did not find any good tutorial that walks people through the simple cases, besides some code snippets.

如何为匹配/日程安排问题建模,其中3名具有独特时间和课程偏好的学生希望注册4门课程?我如何启动代码,在哪里放置约束,我调用哪些类,等等?

How do I model a matching/scheduling problem, where 3 students with unique time and course preferences are looking to sign up for 4 courses? How do I start the code, where do I put the constraints, which classes I call upon, etc?

任何帮助都将不胜感激!!

Any help will be greatly appreciated!!

谢谢!!

推荐答案


  1. 下载任何其他拉链,如Drools本身或Eclipse Drools插件工具是可选的。 Drools Planner拉链带有大多数人需要的东西。

  2. 来自拉链,,并在GUI中播放云平衡和课程安排问题。

  3. 阅读。

  4. 在examples / sources /下面的zip中查看课程安排的源代码。 a href =http://docs.jboss.org/drools/release/5.4.0.Final/drools-planner-docs/html_single/index.html#d0e288 =nofollow>在你最喜欢的IDE中运行它。

  1. Download the Drools Planner zip. Downloading any of the other zips such as Drools itself or the Eclipse Drools plugin tools is optional. The Drools Planner zip comes with everything most people need.
  2. From the zip, open examples/runExamples.sh or .bat and in the GUI play with the cloud balancing and curriculum course scheduling problem.
  3. Read the Quick Start tutorial in the manual.
  4. Take a look at the source code of curriculum course scheduling in the zip under examples/sources/ and run it in your favorite IDE.

这篇关于我如何使用Drools Planner?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 03:29