0

Optaplanner を使用して、トルコのアタテュルク大学で自動時刻表ソフトウェアを開発しています。Optalanner はすべての要件を満たしています。しかし、さらにいくつかの要件があります。そのうちの 1 つ: ->時間割にコースを配置したい場合、どのように 2 つのピリオドに連続して配置できますか。また、3 期連続の講義であってはなりません。たとえば、3 時間の数学の授業を考えてみましょう。

                      IN MONDAY
      -----------------------------------------------

      0.P     Math              Math           Math

      1.P     Math              Math           Another

      2.P     Another           Math           Another

      3.P     Another           Another        Math

      4.P     Math              Another        Another
         (or another day)
      5.P     Another           Another        Another

      6.P     Another           Another        Math
              -----             -----          ----- 
             CORRECT            WRONG          WRONG

タイムテーブルを最初の列のようにしたいので、他のケースを防ぐ必要があります。

4

1 に答える 1