Originally posted by: SystemAdmin
Y is indexed over sets A, B, C, D, E & F. In your objective function Y only seems to be indexed over A, B, C, D & E. Since 'Cost' is an int, you cannot multiply this data type by a boolean array leading to the error. Also, given that Y is indexed over those sets and in that order, you will need to make sure that the same order of Y's index appear in the objective function as well.
With these changes, your obj function could look like the following:
minimize
sum (n in A, l in B, k in C, i in D, m in E, z in F)
(Cost[l][n]*Y[n][l][k][i][m][z]+ Time[i][l]* Y[n][l][k][i][m][z]+Jobs[k][m]*Y[n][l][k][i][m][z]*35 + (1/Rating[i]) * (1 - Y[n][l][k][i][m][z] * 10000));
#DecisionOptimization#OPLusingCPLEXOptimizer