[Coin-lpsolver] Weird (compiler?) bug...
John J Forrest
jjforre at us.ibm.com
Fri Sep 24 11:00:55 EDT 2004
Changed code so should be okay with g++ 3.3.4
Jeff Linderoth <jtl3 at lehigh.edu>
Sent by: coin-lpsolver-admin at www-124.southbury.usf.ibm.com
09/24/2004 09:44 AM
To
coin-lpsolver at www-124.southbury.usf.ibm.com
cc
Subject
[Coin-lpsolver] Weird (compiler?) bug...
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
_______________________________________________
Coin-lpsolver mailing list
Coin-lpsolver at www-124.ibm.com
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/coin-lpsolver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/clp/attachments/20040924/a1ecfb54/attachment.html>
More information about the Clp
mailing list