Skip to main content

All Questions

0 votes
1 answer
50 views

How to initialize a three dimensional array in CPLEX?

int t=4; int b=3; int e=5; range time =1..t; range bus=1..b; range ev=1..e; float soci[ev][bus][time]=[[[0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7]] [[0.5,0.3,0.8,0.7], [0.5,0.3,0.8,0.7]...
haripriya's user avatar
-1 votes
1 answer
48 views

Why is there an error when attempting to initialize a 3D array because it is not an array type and the range does not exist?

Actually, I want to input 14 matrices as a 3D array. For that, I have entered the first matrix, and  then the other 13 matrices are typed below the first matrix. The data file code is given as ...
Harip's user avatar
  • 9
1 vote
0 answers
32 views

No error in CPLEX but there is no solution

Here it is showing soc[t][number] is partially initiated. But I am only given the soc values for first hour and i want to update the value of soc in each hour.can I want to write soc as a decision ...
Haripriya M R's user avatar