Originally posted by: NRouge
Hi,
I'm new to Cplex and I'm facing same error. I have this problem:
int noport=2;
int noship=1;range port=1..noport;
range ship=1..noship;
...
int d[port,port]=...;
...
dvar int y[port,port,ship];
dvar int z[ship];
forall (i in 1..noport-1,j in i+1..noport,k in ship)
y[i,j,k] <= (d[i,j])/(z[k])* sum(p in i..j-1) x[p,j,k];
"(d[i,j])/(z[k])" this part cause the error "Function operator/(int,dvar int) not available in context CPLEX.".
It works fine if it is (d[i,j])*(z[k]), but it doesn't work with the division and I don't know why. I attached mod file of my work for more details.
Please help. Thank you
#DecisionOptimization#OPLusingCPLEXOptimizer