[gecode-users] Advices for creating new variable type?

Geoffroy Zoetardt geoffzoet at hotmail.com
Tue Apr 26 10:27:35 CEST 2016


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


More information about the users mailing list