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 <cschu...@kth.se> 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, cschu...@kth.se
> Expert Researcher, SICS, cschu...@sics.se
> 
> -----Original Message-----
> From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of 
> Geoffroy Zoetardt
> Sent: Tuesday, April 26, 2016 10:28
> To: users@gecode.org
> 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
> users@gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users


_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to