[Coin-discuss] OsiCuts::insertIfNotDuplicate() precision

Francois Margot fmargot at andrew.cmu.edu
Fri Feb 11 03:39:15 EST 2005


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




More information about the Coin-discuss mailing list