Originally posted by: pineapple365
I am trying to return a smallest integer array in a constraint in CPLEX which uses the ceil() function, but keep getting the ''can not use dvar float in constraint''. Following is constraint:
[CODE]
forall(i in Plants, h in Hubs, s in Ships)
Nship[i][h] == plant_hub[i][h]/ShipCapa[s];
forall(i in Plants, h in Hubs)
N[i][h] = ceil(Nship[i][h]);
[/CODE]
The array is two-dimensional, but formulation is simple. I think ceil() function could be used in constraint, and there is something wrong with my coding.
Any help would be great.
#DecisionOptimization#OPLusingCPLEXOptimizer