Hi! I'm starting to use AMPL in my research project and I'm still learning about it.
The problem that i have had solving my model with cplexamp is the following:
Error executing "solve" command:
error processing constraint EACH_RESOURCE['K1']:
can't convert 'K1' to a number.
And the part of the .mod file that causes it is the following:
set J;
set K;
subject to EACH_RESOURCE {k in K}:
1 = sum{j in J} k;
I've read that maybe is a problem about the declaration of sets, but I'm confused and a little bit lost to be honest.
Thank you.