[Coin-symphony] Retrieving solution
Salvatore Nocella
nocella at gmail.com
Mon May 28 04:56:22 EDT 2007
Hi List!
Using SYMPHONY 5.1 I've noticed a strange behaviour retrieving the
solution returned by the branch-and-bound. More in detail, I solve an
{0,1}-LP by B&B as follows:
ENV_SYM = new OsiSymSolverInterface();
ENV_SYM->loadFromCoinModel(*(CG->Model));
ENV_SYM->setObjSense(-1);
ENV_SYM->branchAndBound();
The B&B procedure correctly prints out the optimal solution value and
non-zero variables, but when I try to retrieve the solution vector as
follows
x = (double*)ENV_SYM->getColSolution();
the vector x comes out undefined (i.e., for each i, x[i] has an
undefined value, neither 0 nor 1).
Is there any error in my procedure, or what?
I'm looking forward to your replies
Goodbye, Salvatore
____________________________________
Salvatore Nocella
University of L'Aquila, IT
More information about the Symphony
mailing list