[Coin-discuss] OsiCuts::insertIfNotDuplicate() precision
John J Forrest
jjforre at us.ibm.com
Fri Feb 11 10:45:59 EST 2005
Francois,
I can't see any harm in doing this. Doesn't seem to hurt.
I have actually used CoinAbsFltEq(1.0e-12) as default and have added a
similar version for CoinRelFltEq in case that is wanted in future.
John Forrest
Francois Margot <fmargot at andrew.cmu.edu>
Sent by: coin-discuss-bounces at list.coin-or.org
02/11/2005 03:39 AM
Please respond to
Discussions about open source software for Operations Research
To
coin-discuss at list.coin-or.org
cc
Subject
[Coin-discuss] OsiCuts::insertIfNotDuplicate() precision
Hi:
Would it be possible to modify the method
OsiCuts::insertIfNotDuplicate(OsiRowCut & rc) in OsiCuts.cpp to
OsiCuts::insertIfNotDuplicate(OsiRowCut & rc, const double precision)
and replace in the code all "1e-12" by "precision"? The default for
"precision" might be set to 1e-12, making the change transparent for
code currently using the method.
I find it silly that the user is not able to choose the precision to use
when deciding if two numbers are equal or not.
Francois
_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20050211/dbb509c9/attachment.html>
More information about the Coin-discuss
mailing list