[Gecode] Re: GECODE VarTypeId question

Guido Tack tack at ps.uni-sb.de
Thu Jan 20 16:17:32 CET 2005


Hi.

First of all, I think we should move the discussion to our mailing 
list. Please subscribe to it via the web interface:
http://www.ps.uni-sb.de/mailman/listinfo/gecode

Gustavo Gutierrez:
> I have been added some clases concerning with the real interval 
> constraint
> system to gecode sources and i have a question about the VarTypeId 
> enum.
>
> First of all i think i need to modify this by adding a new definition 
> like
> VTI_RI = 2 , note that i use 2 because 0 represents FD and 1 
> represents FS is
> it ok?. I think VTI_MAX also needs to be modified and the new value is 
> 2.
>
> Summarizing, the final enum should looks like:
>
> enum VarTypeId {
>   VTI_INT   = 0,
>   VTI_SET   = 1,
>   VTI_RI    = 2,
>   VTI_MAX   = 2,
>   VTI_LIMIT = 7,
> };
>
> Is it right or have I missed something?

That looks ok.

> This is the only modification i have made to gecode sources, are there 
> other
> files that need to be modified in order to adapt the new constraint 
> system?

That should be everything you need to change in the kernel. The 
VarTypeId is used by the kernel to delegate all domain dependent 
actions to the correct variable implementation.

Guido




More information about the gecode-users mailing list