[gecode-users] BoolVarArgs in unary Scheduling

Christian Schulte cschulte at kth.se
Mon Aug 1 11:52:59 CEST 2011


Just use a constraint that assigns a value, that is, if you want to assign
the value 1 to a Boolean variable b, the following:

                rel(home, b, IRT_EQ, 1);

does the trick.

 

Christian

 

--

Christian Schulte, KTH, web.it.kth.se/~cschulte/

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of hamideh izadyar
Sent: Monday, August 01, 2011 11:48 AM
To: users at gecode.org
Subject: [gecode-users] BoolVarArgs in unary Scheduling

 

Hi
I want to use unary function for scheduling. I want to excluse some task
which are known to me from unary scheduling. I have read the gecode
document, I know that I can pass a BoolVarArgs to the unary function. How
can I give value to this BoolVarArgs in my program? All the examples I saw,
give value to BoolVarArgs in the model by constraints. I want to assign
value to this array in the main function.
Would you please help me.

Best Regards

-- 
-------------------------------------------------------------------------

Hamideh Izadyar
Graduate Student
Computer Engineering Dep.
Sharif University of Technology
http://ce.sharif.edu/~izadyar <http://ce.sharif.edu/%7Eizadyar>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20110801/2bcc4a0f/attachment.htm>


More information about the users mailing list