two conditional statement in a summation
Posted: Wed May 19, 2021 12:49 pm
Hello
I want to add a conditional range summation equation, which has two conditional statements as mentioned below:
There is no problem with the conditional sumation with first condition:
but when I run the code with second one: , also with both of the conditions, I get this error (error code 148):
"dimension different: the symbol is referenced with more/less indices as declared."
It is worth mentioning both "bus" and "node" sets are exactly equal, and I don't know which indices are more/less.
I want to add a conditional range summation equation, which has two conditional statements as mentioned below:
Code: Select all
Con23(bus)..
sum (node $ ( conex(bus,node) and (node>bus) ) ,lambda(bus,node)/branch(bus,node,'x') =e= 0 ;
Code: Select all
conex(bus,node)
Code: Select all
(node>bus)
"dimension different: the symbol is referenced with more/less indices as declared."
It is worth mentioning both "bus" and "node" sets are exactly equal, and I don't know which indices are more/less.