I'm trying to model a student assignment probelm using cplex. I have student details in a access database (ex: student id and marks) I was able to obtain these values from db to .mod file using tuples.
tuple stuType{
int id;
int mark;
}
stuType m[id][mark]=...;
Now i want to use these values in my objective function.
maximize sum(a in id, b in id, k in mark) m [a] [k] * m [b] [k];
but this notation gives me errors in objective function. Any help on how to solve this problem is highly appreciated.