Ignore:
Timestamp:
Feb 13, 2010 9:04:23 AM (11 years ago)
Author:
pbelotti
Message:

fixed reformulation bug affecting st_glmp_fp3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Couenne/src/standardize/standardize.cpp

    r274 r294  
    378378  }
    379379
     380  // check how many multiplications there are
     381
     382//   int nmul = 0;
     383//   // Look for auxiliaries of the form w:=x and replace each occurrence of w with x
     384//   for (std::vector <exprVar *>::iterator i = variables_.begin ();
     385//        i != variables_.end (); ++i) {
     386
     387//     if ((*i) -> Type () != AUX ||
     388//      (*i) -> Multiplicity () <= 0)
     389//       continue;
     390
     391//     expression *img = (*i) -> Image ();
     392
     393//     if (img -> code () != COU_EXPRMUL)
     394//       continue;
     395
     396//     expression **args = img -> ArgList ();
     397
     398//     if ((args [0] -> Type () == AUX ||
     399//       args [0] -> Type () == VAR) &&
     400//      (args [1] -> Type () == AUX ||
     401//       args [1] -> Type () == VAR))
     402//       nmul++;
     403//   }
     404
     405//   printf ("MULS: %d/%d\n", nmul, variables_.size());
     406
     407//   exit (-1);
     408
    380409  // TODO: re-compute ranks
    381410
Note: See TracChangeset for help on using the changeset viewer.