Originally posted by: SystemAdmin
[a_shraideh said:]
Hellow every body,
i have strange problem,
i use ILOG CPLEX v9, to solve MIP problem with java
this MIP sample is generated randomly
when i solve only one sample at each execution the solution works perfectly, when i try to solve several sample or to
put my sample within a "for loop" to solve the different sample i get the following results for each iteration???
(
Row '' infeasible, all entries at implied bounds.
)
a sodo code is the following
for only one sample :
1) IloCplex cplex = new IloCplex();
2) generatesample();
3) populateByRow(cplex, var, rng);
4) cplex.solve();
5) cplex.end();
this work very will
for several sample:
for(i=0;i<10;i++)<br />{
1) IloCplex cplex = new IloCplex();
2) generatesample();
3) populateByRow(cplex, var, rng);
4) cplex.solve();
5) cplex.end();
}
I get the solution only for the first sample and then i get 9 times
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
Row '' infeasible, all entries at implied bounds.
thank u in advance
#CPLEXOptimizers#DecisionOptimization