Ignore:
Timestamp:
Jun 9, 2006 2:39:33 PM (13 years ago)
Author:
ladanyi
Message:

finished switch to subversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/src/CbcHeuristicFPump.cpp

    r311 r354  
    5353{
    5454  return new CbcHeuristicFPump(*this);
     55}
     56// Create C++ lines to get to current state
     57void
     58CbcHeuristicFPump::generateCpp( FILE * fp)
     59{
     60  CbcHeuristicFPump other;
     61  fprintf(fp,"0#include \"CbcHeuristicFPump.hpp\"\n");
     62  fprintf(fp,"3  CbcHeuristicFPump heuristicFPump(*cbcModel);\n");
     63  if (maximumPasses_!=other.maximumPasses_)
     64    fprintf(fp,"3  heuristicFPump.setMaximumPasses(%d);\n",maximumPasses_);
     65  else
     66    fprintf(fp,"4  heuristicFPump.setMaximumPasses(%d);\n",maximumPasses_);
     67  if (maximumTime_!=other.maximumTime_)
     68    fprintf(fp,"3  heuristicFPump.setMaximumTime(%g);\n",maximumTime_);
     69  else
     70    fprintf(fp,"4  heuristicFPump.setMaximumTime(%g);\n",maximumTime_);
     71  fprintf(fp,"3  cbcModel->addHeuristic(&heuristicFPump);\n");
    5572}
    5673
     
    111128  for (i=0;i<numberIntegers;i++) {
    112129    int iColumn = integerVariable[i];
     130#ifndef NDEBUG
    113131    const CbcObject * object = model_->object(i);
    114 #ifndef NDEBUG
    115132    const CbcSimpleInteger * integerObject =
    116133      dynamic_cast<const  CbcSimpleInteger *> (object);
     
    337354    if(!solver->isBinary(iColumn))
    338355      continue;
     356#ifndef NDEBUG
    339357    const CbcObject * object = model_->object(i);
    340 #ifndef NDEBUG
    341358    const CbcSimpleInteger * integerObject =
    342359      dynamic_cast<const  CbcSimpleInteger *> (object);
Note: See TracChangeset for help on using the changeset viewer.