Hi, No special way: you will just have to implement something in terms of your NoteVar. Frankly, I do not really know what you are after...
Cheers Christian -- Christian Schulte, www.gecode.org/~schulte Professor of Computer Science, KTH, [email protected] Expert Researcher, SICS, [email protected] -----Original Message----- From: Geoffroy Zoetardt [mailto:[email protected]] Sent: Tuesday, April 26, 2016 15:02 To: [email protected] Cc: [email protected] Subject: Re: [gecode-users] Advices for creating new variable type? Hi Christian, For now, I don’t intend to implement specific propagators. Concerning the constraint post functions, is there a special way to do it through gecode? Thanks you for you quick answer! Geoffroy > Le 26 avr. 2016 à 11:02, Christian Schulte <[email protected]> a écrit : > > Hi Geoffroy, > > The key question here is whether you intend to also implement propapators > that are specific to a NoteVar. > > If yes, then you will have to have a look at the Variable implementation part > in MPG. > > If not, you can see a NoteVar just as modeling tool for which you provide > your own constraint post functions but no dedicated propagators as all can be > expressed by constraints over integer variables. Much easier. > > I'd try to give the latter a shot first. > > Cheers > Christian > > -- > Christian Schulte, www.gecode.org/~schulte Professor of Computer > Science, KTH, [email protected] Expert Researcher, SICS, > [email protected] > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Geoffroy Zoetardt > Sent: Tuesday, April 26, 2016 10:28 > To: [email protected] > Subject: [gecode-users] Advices for creating new variable type? > > Hi everyone, > > I’m actually developing a binding between Gecode and OpenMusic (composition > software made by the IRCAM). > During this project, I want to create new type of variable closer to the > musical objects already existing in OpenMusic (OM). > For example, in OM there is a Note object with some attributes such as the > pitch, the velocity, the duration and I want to create a NoteVar in Gecode to > use all possibilities of constraint programming on Note object. > For now, my idea is to implement each attribute as an IntVar content in the > NoteVar object because there are mainly two application that I need to do > with NoteVar: > - Be able to apply constraints and search on attribute individually (reason > for implementing them as IntVar). > - Be able to apply constraints and search on the NoteVar object. > Then I would like to have your advices on « What would be the best idea of > implementation for NoteVar to easily apply the constraints and the search on > this object? ». > I hope that it is clear enough. > Already thank you! > > Geoffroy Zoetardt > _______________________________________________ > Gecode users mailing list > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
