I have a 2d matrix of scores as parameters. I have nxm variables x[i,j], those variables can assume integer values in a predetermined range. I need to maximize something like this: desidered objective function
Where scores is the matrix. Is it possible to define such a objective function?
2 options as said in How to use a decision variable as an index with CPLEX part of HOW TO WITH OPL CPLEX?
With CPOptimizer in CPLEX
or with CPLEX MIP
and with your objective that gives