Originally posted by: babyvera
Hi all. I am the beginner of the c++ cplex. I have a qusetion about the IloNumVarArray. I spend 5 days on this question,but failed.
First I use 'IloNumVarArray' to set up a array with 5 elements, named f. Then use 'add' to make 5 arrays become a 5*5 matrix named fij. Third I want to row sum. Except use fij[1]+ fij[2]+ fij[3]+ fij[4]+ fij[5] , Are there any other way to solve this problem? Because the model have 1047*1047 matrix, I will write down fij[1]+ fij[2]...........fij[1047]. That maybe a hard work.
Thank you!!!
#DecisionOptimization#OPLusingCPLEXOptimizer