Originally posted by: SystemAdmin
[helio said:]
I am trying to set intial values for LP, the var has 3D. Following the discussion in "
http://forums.ilog.com/optimization/index.php/topic,790.0.html " I tried :
1. cplex.setParam(IloCplex::AdvInd, 1);
2.
for (i=0; i<I; i++)<br /> {
for (j= 0; j<J; j++)<br /> cplex.setVectors(val[i][j], 0, var[i][j], 0, 0, 0);
}
3. cplex.setParam(IloCplex::RootAlg, IloCplex::Primal)
I tried step 1 and 2, it seemed the initial values were not used.
I tried step 1, 2, and 3, it complained:
"
terminate called after throwing an instance of 'IloCplex::Exception'
Aborted
"
Can anyone tell me the answer? Thx.
#CPLEXOptimizers#DecisionOptimization