Originally posted by: ZakariaChekoubi
@DanielJunglas Thank you for your answer. I tried your proposal to use the cplex.getValue(y [i] [j] [k] [l]) method, but the problem still persists:
for (int i = 0; i < this.Ncd; i++) {
for (int j = 0; j < this.Ncd; j++) {
for (int k = 1; k < this.Nbv; k++) {
for(int t=1; t<this.T; t++)
System.out.printf("valeur = "+this.cplex.getValue(this.y[i][j][k][t]));
}
}
}
This is the error code :
at ilog.cplex.IloCplex.getValue(IloCplex.java:5943)
at MyCplexModel.solve(MyCplexModel.java:194)
at MyCplexModel.main(MyCplexModel.java:240)
MyCplexModel.java:194 -> corresponds to line code :
System.out.printf("valeur = "+this.cplex.getValue(this.y[i][j][k][t]));
Please how can I fix this problem ?
#CPLEXOptimizers#DecisionOptimization