示例#1
0
 void exclude(Gecode::Space& home, CPRelVar A, GRelation r) {
   if (home.failed()) return;
   if (r.arity() != A.arity())
     throw ArityMissmatch("Exclude constraint");
   CPRelView a(A);
   auto me = a.exclude(home,r);
   if (me == Gecode::ES_FAILED) {
     home.fail();
   }
 }
示例#2
0
 /// Post constraint on \a x
 virtual void post(Gecode::Space& home, Gecode::IntVarArray&) {
   home.fail();
 }
示例#3
0
 /// Then-function to be executed
 static void t(Gecode::Space& home) {
   home.fail();
 }