# \[AMPL 24615\] SOS1

**URL:** <https://discuss.ampl.com/t/ampl-24615-sos1/504>\
**Category:** Google Group Mirror\
**Created:** [April 17, 2023, 11:06am UTC](https://discuss.ampl.com/t/ampl-24615-sos1/504 "2023-04-17T11:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manuel\_Alvarez\_Rodri](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/manuel_alvarez_rodri/32/247_2.png) [@Manuel\_Alvarez\_Rodri](https://discuss.ampl.com/u/Manuel_Alvarez_Rodri)\
**Post date:** [April 17, 2023, 11:06am UTC](https://discuss.ampl.com/t/ampl-24615-sos1/504/1 "2023-04-17T11:06:19Z")

</div>

Hello,

I have a variable x with indexs l in LOCATIONS and t in TYPES. It is possible, following the notation “var x {LOCATIONS} in CAPACITIES;”, to define for each t in TYPES, X{LOCATIONS, t} in a different set that depends on t, such as {ord(U, n1[t])…ord(U, n2[t])}?  
Thanks in advance.

Sincerely  
Manuel

---

<div class="post-metadata">

**Author:** ![AMPL\_Google\_Group](https://avatars.discourse-cdn.com/v4/letter/a/9dc877/32.png) [@AMPL\_Google\_Group](https://discuss.ampl.com/u/AMPL_Google_Group)\
**Post date:** [April 18, 2023, 6:04pm UTC](https://discuss.ampl.com/t/ampl-24615-sos1/504/2 "2023-04-18T18:04:50Z")

</div>

This question was answered in our new, enhanced user forum at [https://discuss.ampl.com](https://discuss.ampl.com).
