Originally posted by: joaopedrosantos
Beginner here, why is this happening?
range grupos = 1..Ngrupos;
range weeks = 1..Nweeks;
...
float ms[weeks];//mínima carga
float Ms[weeks];//máxima carga
dexpr float dif=sum(w in weeks) w1*(Ms[w]-ms[w]);
minimize dif;
Error on the last line and I think in the dexpr
#DecisionOptimization#OPLusingCPLEXOptimizer