[Coin-symphony] Retrieving solution
Ted Ralphs
tkralphs at lehigh.edu
Mon May 28 10:19:36 EDT 2007
Salvatore,
Your procedure seems OK, so I'm not sure what's wrong. Can you file a
bug report here:
https://projects.coin-or.org/SYMPHONY/newticket
Please indicate the exact version you are using (stable/5.1 or one of
the releases) and attach the MPS file that exhibits this behavior. That
will make it easier for us to track this down. Thanks.
Cheers,
Ted
Salvatore Nocella wrote:
> 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
> _______________________________________________
> Coin-symphony mailing list
> Coin-symphony at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-symphony
--
Dr. Ted Ralphs
Associate Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2
More information about the Symphony
mailing list