Home | Trees | Index | Help |
---|
Module constraint :: Class Constraint |
|
object
--+
|
Constraint
AllDifferentConstraint
,
AllEqualConstraint
,
ExactSumConstraint
,
FunctionConstraint
,
InSetConstraint
,
MaxSumConstraint
,
MinSumConstraint
,
NotInSetConstraint
,
SomeInSetConstraint
,
SomeNotInSetConstraint
Method Summary | |
---|---|
bool |
Perform the constraint checking |
bool |
Helper method for generic forward checking |
Preprocess variable domains | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Method Details |
---|
__call__(self,
variables,
domains,
assignments,
forwardcheck=False)
|
forwardCheck(self, variables, domains, assignments, _unassigned=Unassigned)Helper method for generic forward checking Currently, this method acts only when there's a single unassigned variable.
|
preProcess(self, variables, domains, constraints, vconstraints)Preprocess variable domains This method is called before starting to look for solutions, and is used to prune domains with specific constraint logic when possible. For instance, any constraints with a single variable may be applied on all possible values and removed, since they may act on individual values even without further knowledge about other assignments.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jul 7 02:05:09 2005 | http://epydoc.sf.net |