
Test for set weight constraint More...
Public Member Functions | |
| Weights (const char *t, IntArgs &el, IntArgs &w, int min=-10000, int max=10000) | |
| Create and register test. | |
| virtual bool | solution (const SetAssignment &x) const |
| Test whether x is solution | |
| virtual void | post (Space &home, SetVarArray &x, IntVarArray &y) |
| Post constraint on x. | |
Public Attributes | |
| IntArgs | elements |
| IntArgs | weights |
| int | minWeight |
| int | maxWeight |