Originally posted by: pickup
thank you Mr. Alex ,
and how we can define this two set in a graph G=( N, A)
SEGP (i) = {j in N : (i, j) in A} : is all successors of node i
SEGM (i) = {j in N : (j, i) in A} :all predecessors of node i
in my model I defined as :
tuple Ssegplus{
int n;
int s;
}
tuple Ssegmoins{
int n;
int e;
}
{Ssegplus}SEGP=...;
{Ssegmoins}SEGM=...;
but i have a problem when i execute my model, syntax error in the contraints:
1) The type Ssegplus {} can not be used to userFunction.
2) The type Ssegmoin{} can not be used to userFunction.
subject to
{
c1: forall (i in ICF)
sum (v in V, j in SEGP[i]) Xijv[i][j][v]==1;
c2 : forall (i in ICF)
sum (v in V, j in SEGM[i])Xijv[j][i][v]==1;
}
regards
#DecisionOptimization#OPLusingCPLEXOptimizer