[Coin-discuss] CLP dual ray broken
magh at lehigh.edu
magh at lehigh.edu
Thu Dec 16 15:52:30 EST 2004
Last time I used OsiClp::getDualRays( ), it was fine. This was about 2 months
ago. Something seems wrong with a recent update. Here is a small test using
itest6.mps from COIN/Mps/Infeas - it retuns NULL for the ray.
#include "OsiClpSolverInterface.hpp"
#include <assert.h>
#include <vector>
int main(int argc, char ** argv){
OsiClpSolverInterface si;
si.readMps("itest6.mps");
si.initialSolve();
printf("\nSTAT: %d, 2nd STAT: %d",
si.getModelPtr()->problemStatus(),
si.getModelPtr()->secondaryStatus());
std::vector<double*> dual_rays = si.getDualRays(1);
assert(dual_rays[0]);
}
Thanks,
Matt
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
More information about the Coin-discuss
mailing list