I have defined a constraint, in which related SolEQUE is not correct. here is the constraint:
Code: Select all
Con35(busp,nodep) $ (conex(busp,nodep)) .. sum( (bus,node)$ (conex(bus,node) and bus.val<node.val ) , Inci(busp,nodep,bus,node)* (Pl(bus,node)) ) =l= 1;
in another gms file, I have defined a parameter equal to Pl variable whose value is equaled to the solved value from previously solved problem; and I have defined the above equation with loop and if, to get the answer. the answer was completely different, and it was exact and correct! here is the loop:
Code: Select all
loop(busp,
loop (nodep,
if(conex(busp,nodep),
III(busp,nodep) = sum((bus,node)$ (conex(bus,node) and (bus.val<node.val)) ,Inci(busp,nodep,bus,node)* (Pl(bus,node) ));
);
);
);