[gecode-users] boolean relation optimisation

Guido Tack tack at gecode.org
Sun Apr 10 10:20:17 CEST 2011


Ruben Zilibowitz wrote:

> Suppose I have a large number of boolean relations I wish to satisfy. Call them B1, B2, ..., Bn.
> Which of the following is the recommended way to implement this in a Gecode Space object?
> 
> // method 1
> rel(*this,B1);
> rel(*this,B2);
> ...
> rel(*this,Bn);
> /////////
> 
> or,
> 
> // method 2
> rel(*this, B1 && B2 && ... && Bn);
> /////////

It's exactly the same.

Cheers,
	Guido

-- 
Guido Tack, http://people.cs.kuleuven.be/~guido.tack/







More information about the users mailing list