Originally posted by: GoheX
Good evening,
My question is similar to one already asked on Stackoverflow, but there was not an answer (at least not one accepted nor suitable).
I am attempting to make a constraint, which I've simplified below:
dexpr int startingWeekChanges[p in People] = 7 * y + 1;
...
for(p in People){
Assign[startingWeekChanges[p]] == 1;
}
But I see this is not allowed (error message being "Indexing array "Assign" with type dexpr int not supported by this algorithm").
I can't change over to constraint programming. Is there an alternative strategy to get by this?
#CPLEXOptimizers#DecisionOptimization