Originally posted by: Saumya_Bhatnagar
Hi,
I am implementing a variant of RCPSP, wherein to implement the capacity constraint, I add up the amount of resource k consumed by all activities. (Partial code below). Here, k is the index of a resource, task is an IloIntervalVariable and consumption[i][j][k] is the amount of resource k consumed by this task.
cum_resource[k]=cp.sum(cum_resource[k],cp.pulse(task,consumption[i][j][k]));
// capacity constraint
for(int k=0;k<nbResources;k++){
cp.add(cp.le(cum_resource[k],capacity[k]));
}
But i get the following error when calling the IloCP solve() method:
ilog.concert.IloException: Parameter 1 of function pulse is out of required range [0, 9007199254740991].
Any insight on the root cause of this error or how to resolve this would be of great help. Thanks in advance.
#CPOptimizer#DecisionOptimization