Exemple #1
0
    def mergeKnapsack(self, newKnapsack, interp):
        self.task.extend(newKnapsack.task)
        self.value.extend(newKnapsack.value)
        self.weight.extend(newKnapsack.weight)
        self.group.extend(newKnapsack.group)

        newInterp = Interpretation()
        newInterp.merge(self.interp)
        newInterp.merge(interp)
    def mergeInterp(self, goal, interp):
        newInterp = Interpretation()
        newInterp.merge(goal.interp)
        newInterp.merge(interp)

        return newInterp
Exemple #3
0
    def isAchievable(self, current, interp):
        newInterp = Interpretation()
        newInterp.merge(self.interp)
        newInterp.merge(interp)

        return PragmaticPlanning().isAchievable(self, current, newInterp)