Class | ConstraintSolver::ConstraintList |
In: |
lib/ConstraintList.rb
|
Parent: | Array |
This class represents a list of constraints.
Returns the ConstraintList that contains all constraints that involve variable and have values assigned to not all variables involved.
# File lib/ConstraintList.rb, line 8 def notAllAssignedWithVariable(variable) ConstraintList.new(self.select { |constraint| constraint.include?(variable) and not constraint.allAssigned? }) end