Changeset 1126 for trunk


Ignore:
Timestamp:
Mar 10, 2015 9:37:04 AM (5 years ago)
Author:
tkr
Message:

Fixing complaint by MSVC compiler about ambiguous call to overloaded function sqrt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/heuristics/CouenneFPcreateMILP.cpp

    r1078 r1126  
    281281  for (int i=0; i<n; ++i)
    282282    if (fp -> Problem () -> Var (i) -> Multiplicity () > 0)
    283       A [i * (n+1)] += fp -> multDistMILP () / sqrt (n);
     283       A [i * (n+1)] += fp -> multDistMILP () / sqrt (static_cast<double>(n));
    284284
    285285  // Add gradient-parallel term to the hessian, (x_z - x_z_0)^2. This
Note: See TracChangeset for help on using the changeset viewer.