I am new to CPLEX. I am using CPLEX with Xcode in macOS.
I have three arrays (known parameters used in optimisation) which I define as
IloNumArray capacity(env), fixedCost(env);
FloatMatrix cost(env);
I then assign values to this arrays as
fixedCost=[480, 200, 320, 340, 300];
cost=[[ 24, 74, 31, 51, 84],
[ 57, 54, 86, 61, 68],
[ 57, 67, 29, 91, 71],
[ 54, 54, 65, 82, 94],
[ 98, 81, 16, 61, 27],
[ 13, 92, 34, 94, 87],
[ 54, 72, 41, 12, 78],
[ 54, 64, 65, 89, 89]];
capacity=[ 3, 1, 2, 4, 1];
But, I am getting the following error:
Expected variable name or 'this' in lambda capture list
How can I get rid of this?