Hi,
in your main I see
var subSource = new IloOplModelSource("CG_2_PP.mod");
but you have not attached that file. So it will be hard to reproduce your error.
Plus in your submodel you wrote
minimize((sum(k in Lincards, u in nodes)(n1[k][u]*k.costtype_lc*2))+(sum(k in ECcards, u in nodes)(n2[k][u]*k.costtype_ec*2))+(sum(i in flows, j in routes, u in nodes, v in nodes)lemda[i][j][u][v]*(hope_count[j][u][v]-Duals[v])*i.flow_bw));
but Duals is indexed by Routes and here v belongs to nodes. So that s not normal
regards
#CPLEXOptimizers#DecisionOptimization