Ignore:
Timestamp:
Jun 9, 2006 10:05:41 PM (13 years ago)
Author:
ladanyi
Message:

finishing conversion to svn

File:
1 edited

Legend:

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

    r355 r356  
    149149{
    150150  // matrix and row copy will automatically be empty
     151  seed_=1;
    151152}
    152153
     
    172173{
    173174  return new CbcRounding(*this);
     175}
     176// Create C++ lines to get to current state
     177void
     178CbcRounding::generateCpp( FILE * fp)
     179{
     180  CbcRounding other;
     181  fprintf(fp,"0#include \"CbcHeuristic.hpp\"\n");
     182  fprintf(fp,"3  CbcRounding rounding(*cbcModel);\n");
     183  if (seed_!=other.seed_)
     184    fprintf(fp,"3  rounding.setSeed(%d);\n",seed_);
     185  else
     186    fprintf(fp,"4  rounding.setSeed(%d);\n",seed_);
     187  fprintf(fp,"3  cbcModel->addHeuristic(&rounding);\n");
    174188}
    175189
     
    887901  return new CbcSerendipity(*this);
    888902}
     903// Create C++ lines to get to current state
     904void
     905CbcSerendipity::generateCpp( FILE * fp)
     906{
     907  fprintf(fp,"0#include \"CbcHeuristic.hpp\"\n");
     908  fprintf(fp,"3  CbcSerendipity serendipity(*cbcModel);\n");
     909  fprintf(fp,"3  cbcModel->addHeuristic(&serendipity);\n");
     910}
    889911
    890912// Copy constructor
Note: See TracChangeset for help on using the changeset viewer.