Answered question
This question has been answered.

Unanswered question
This question has not been answered yet.

Hi,
I am trying to code the constraint (2) on the second page of the attached file.
Namely, I want to define indexes from different sets. in example i are from a set of origin points and j from another set of destination points.
Now ILOG gives "unexpected ',' " error because of the ',' on the sum line.

Thank you in advance for your time and comments.
arguen.

forall( v in V ) sum ( (i in Arc_v_ovNt[v] , j in NPD_v[v]) : <v,i,j> in Arc_vij && (t==1 in T) ) x[<v,i,j>][t] ==1;

(The other part of my code is available in my previous post)

Hi,
I am trying to code the constraint (2) on the second page of the attached file.
Namely, I want to define indexes from different sets. in example i are from a set of origin points and j from another set of destination points.
Now ILOG gives "unexpected ',' " error because of the ',' on the sum line.

Thank you in advance for your time and comments.
arguen.
<pre class="jive-pre">
forall( v in V ) sum ( (i in Arc_v_ovNt[v] , j in NPD_v[v]) : <v,i,j> in Arc_vij && (t==1 in T) ) x[<v,i,j>][t] ==1;
</pre>

(The other part of my code is available in my previous post)

This is the accepted answer.
This is the accepted answer.

I solved my problem as follows:
Regards,

forall( v in V, i in No_v[v]) sum ( j in NPD_v[v]:(<v,i,j> in Arc_vij) ) x[<v,i,j>][1] == 1;
// t==1

I solved my problem as follows:
Regards,
<pre class="jive-pre">
forall( v in V, i in No_v[v]) sum ( j in NPD_v[v]:(<v,i,j> in Arc_vij) ) x[<v,i,j>][1] == 1;
// t==1
</pre>