Originally posted by: WBCT_tushar_goel
i have recently migrated from OPL 3.7.1 to ILOG CPLEX optimization studio 12.2. In OPL 3.7.1 there is command "addh()" that increases the upper bound of the open array solution by one (addh stands for \add high").
for example( In OPL 3.7.1):
Model m("queens.mod","queens.dat");
int nb := 0;
Open int solution
http://1..0,1..m.n;
while m.nextSolution() do {
n := n + 1;
solution.addh();
forall(i in 1..m.n)
solution
n,i := m.queens[i];
}
forall(s in 1..n) {
forall(i in 1..m.n)
cout << "queens = " << solution
s,i << endl;
cout << endl;
}
I want to do exactly the similar operation in the newer version, please suggest some way to do it.
#DecisionOptimization#OPLusingCPOptimizer