Ignore:
Timestamp:
Oct 9, 2006 4:19:31 PM (14 years ago)
Author:
forrest
Message:

for local tree search and feasibility pump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcTreeLocal.cpp

    r419 r441  
    837837  global->eraseRowCut(i);
    838838}
    839 
    840 
    841 
     839// Create C++ lines to get to current state
     840void
     841CbcTreeLocal::generateCpp( FILE * fp)
     842{
     843  CbcTreeLocal other;
     844  fprintf(fp,"0#include \"CbcTreeLocal.hpp\"\n");
     845  fprintf(fp,"5  CbcTreeLocal localTree(cbcModel,NULL);\n");
     846  if (range_!=other.range_)
     847    fprintf(fp,"5  localTree.setRange(%d);\n",range_);
     848  if (typeCuts_!=other.typeCuts_)
     849    fprintf(fp,"5  localTree.setTypeCuts(%d);\n",typeCuts_);
     850  if (maxDiversification_!=other.maxDiversification_)
     851    fprintf(fp,"5  localTree.setMaxDiversification(%d);\n",maxDiversification_);
     852  if (timeLimit_!=other.timeLimit_)
     853    fprintf(fp,"5  localTree.setTimeLimit(%d);\n",timeLimit_);
     854  if (nodeLimit_!=other.nodeLimit_)
     855    fprintf(fp,"5  localTree.setNodeLimit(%d);\n",nodeLimit_);
     856  if (refine_!=other.refine_)
     857    fprintf(fp,"5  localTree.setRefine(%s);\n",refine_ ? "true" : "false");
     858  fprintf(fp,"5  cbcModel->passInTreeHandler(localTree);\n");
     859}
     860
     861
     862
Note: See TracChangeset for help on using the changeset viewer.