Hello,
I want to combine two conditions to restrict constraint generation :
I try to avoid of having to products without setup timeslot and therefore I want to force that when it is another product the binary flag is force to be 0
con setsup {i in produit, j in produit , t in time : i<>j and t > 0} : periode_prod[i,t-1] + periode_prod[j,t] = 0 ;
the question is how to combine the two conditions following the : I'm not sure that the AND is working, I quite sure that it doesn't work
Thanks in advance
Yannic
The AND is correct, but "i<>j" means max(i,j). If you want to express that i is not equal to j, please use "i ne j" or "i ^= j" or " i ~= j" instead.
The AND is correct, but "i<>j" means max(i,j). If you want to express that i is not equal to j, please use "i ne j" or "i ^= j" or " i ~= j" instead.
And here is an alternative approach:
con setsup {i in produit, j in produit diff {i}, t in time : t > 0} : periode_prod[i,t-1] + periode_prod[j,t] = 0 ;
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.