I'm trying to implement the following in AMPL:
$$ i \in [N], j \in[N] \backslash \{i\}, t \in [T] $$
I have so far written the following:
subject to Con{i in PP,t in TT, j in PP : j != i}:
but it does not feel correct, is it? I also have a question about implementing this: $$ i \neq j,t $$ in a constraint, i'm only getting one to work:
subject to {i in PP,t in TT, j in PP : j != i}:
modelanddatasuch that they don't use the solve command. Then do adisplayon the set operations that you want to validate. example you could trydisplay {i in PP,t in TT, j in PP : j != i};to check if you are getting the correct selection from the sets. – prash Feb 01 '20 at 06:24