[Coin-lpsolver] Weird (compiler?) bug...

Jeff Linderoth jtl3 at lehigh.edu
Fri Sep 24 09:44:31 EDT 2004


Hi All,

Is anyone else using g++ 3.3.4 with Clp? I just ran across a very, very,
strange bug that cost me a couple hours...

The ClpModel::maximumIterations() method was always returning 0. (?!)

In ClpModel::hitMaximumIterations(), the lines:

  std::cout << "Number iterations: " << numberIterations_ << std::endl;
  std::cout << "Function Max Iterations: " << maximumIterations() <<
std::endl;
  std::cout << "intParam_[0] = " << intParam_[ClpMaxNumIteration] <<
std::endl;
  std::cout << "intParam_[1] = " << intParam_[1] << std::endl;

Produced:

Number iterations: 17
Function Max Iterations: 0
intParam_[0] = 99999999
intParam_[1] = 9999999

It only happens when I tried to link Clp (and OsiClp) in with some other
libraries (MINTO, in particular)

Maybe an inlining problem(?)  

Just wanted to give a heads up or see if anyone had anyone had any
useful advice.

Cheers,
-Jeff



-- 
------------------------------------------------------------
Jeff Linderoth				     O: 610-758-4879
Asst. Professor				     
Industrial and Systems Engineering	     jtl3 at lehigh.edu
Lehigh University			www.lehigh.edu/~jtl3          




More information about the Clp mailing list