Changeset 499


Ignore:
Timestamp:
Apr 25, 2007 10:47:56 AM (12 years ago)
Author:
pbelotti
Message:

update arrays before calling getFixVar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Couenne/Couenne/src/branch/CouenneObject.cpp

    r498 r499  
    2323    return 0.;
    2424
    25   expression *fixvar = reference_ -> Image () -> getFixVar ();
    26   int index = fixvar -> Index ();
    27 
    28   if (index < 0)
    29     return 0.;
    30 
    3125  expression::update (const_cast <CouNumber *> (info -> solution_),
    3226                      const_cast <CouNumber *> (info -> lower_),
    3327                      const_cast <CouNumber *> (info -> upper_));
     28
     29  expression *fixvar = reference_ -> Image () -> getFixVar ();
     30  int index = fixvar -> Index ();
     31
     32  if (index < 0)
     33    return 0.;
    3434
    3535  // if branched-upon variable has a narrow interval, it is not worth
Note: See TracChangeset for help on using the changeset viewer.