[Clp] getPrimalRays does not return direction of unboundedness
John Forrest
john.forrest at fastercoin.com
Fri Sep 12 04:21:45 EDT 2014
Aykut,
Behaviour is due to a "feature". initialSolve presolves the problem,
solves it and finds it to be dual infeasible. Because
ClpSimplex::moreSpecialOptions_ default has "2 bit - if
presolved problem infeasible return" set it does not create a ray.
So - either -
do solver->resolve() if infeasible - this will give ray as does not do
presolve
or
add the elegant line
dynamic_cast<OsiClpSolverInterface *
>(solver)->getModelPtr()->setMoreSpecialOptions(0);
before initialSolve
John Forrest
On 11/09/14 22:39, Aykut Bulut wrote:
> Hi,
>
> I use OsiClp for my application and getPrimalRays() function does not
> return any unboundedness direction when it should (when dual is
> infeasible and primal is not). You can see the attached code and mps file.
>
> Any help would be appreciated.
>
> Best,
> Aykut
>
>
> _______________________________________________
> Clp mailing list
> Clp at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/clp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20140912/c2730770/attachment.html>
More information about the Clp
mailing list