### Closed form of a constraint

Posted:

**Fri Aug 31, 2018 1:07 pm**Hello everybody,

I'm conducting a research and I need to write this constraint to the GAMS in my model. Can you help me?

L(A(i),C(m)) +e =l= L(A(i),C(k))-r the constraint will work for every i and m not equal to k set. e is error decision variable. r is very small constant value to get rid of equality of L functions.

In this constraint L is distance function it calculates the distance between A(i) and C(m). i is alternative set. m is class set. The constraint compares their distance values. However I can not write the equation closed form for m not equal k case.(k is also same set with m) Up to now I write their open form but for more alternative set or class set member this code can not e written.

Thanks a lot.

I'm conducting a research and I need to write this constraint to the GAMS in my model. Can you help me?

L(A(i),C(m)) +e =l= L(A(i),C(k))-r the constraint will work for every i and m not equal to k set. e is error decision variable. r is very small constant value to get rid of equality of L functions.

In this constraint L is distance function it calculates the distance between A(i) and C(m). i is alternative set. m is class set. The constraint compares their distance values. However I can not write the equation closed form for m not equal k case.(k is also same set with m) Up to now I write their open form but for more alternative set or class set member this code can not e written.

Thanks a lot.