Thanks a lot! On Mon, Aug 1, 2011 at 2:22 PM, Christian Schulte <[email protected]> wrote:
> 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:* [email protected] [mailto:[email protected]] *On > Behalf Of *hamideh izadyar > *Sent:* Monday, August 01, 2011 11:48 AM > *To:* [email protected] > *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 ***** > -- *------------------------------------------------------------------------- Hamideh Izadyar Graduate Student Computer Engineering Dep. Sharif University of Technology http://ce.sharif.edu/~izadyar *
_______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
