Since we have no index inside the LocationSubset, we need to define
i_aux as an secondary or auxiliary index in your original set
Locations, so we can work with both indexes i and i_aux.
Now the constraint. As you wanted this should be indexed in n_ as follows:
name: ContraintServeAtLeastOneLocation
index domain: n_
definition: sum[ (i_aux, k) | i_aux in LocationsSubset(n_) ,
LocVeh(i_aux,k) ] = 1
obs: you can even use that parameter instead:
sum[ (i_aux, k) | PLocationsInSubsets(n_,i_aux) , LocVeh(i_aux,k) ] = 1
This construction is very usefull.
Hope it helps,
André Gâmbaro
2010/7/28 fy1905 <fatih...@googlemail.com>:
> --
> You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
> To post to this group, send email to ai...@googlegroups.com.
> To unsubscribe from this group, send email to aimms+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/aimms?hl=en.
>
>