Hi Robert Fourer,
I need your help please.
I found these “set,” “parameters,” and “variables,” and there is this constraint:
Why did this person impose the constraint on “j” and “i” and didn’t remove them from “Power1” or from the variable “Q” in the constraint? When I tried to remove them using AMPL, it gave me an error. Can you please explain what’s happening here and what is this situation called in AMPL?
I have an exam tomorrow and I need to explain why he still keeps i and j
………
set Power1 within {J,M,I,F,W};
param Power_Level1{Power1};
set Power2 within {I, H,K,P,W};
param Power_Level2{Power2};
var Q{(j,m,i,f,wu) in Power1 , (n,h,k,p,wd) in Power2}binary;
#Constrant
s.t. Power_level_node {j in J ,i in I} : sum {(j,m,i,f,wu) in Power1 ,(n,h,k,p,wd) in Power2} Q [j,m,i,f,wu,n,h,k,p,wd]<=1;