Changeset 655


Ignore:
Timestamp:
Jun 28, 2007 5:29:30 AM (12 years ago)
Author:
forrest
Message:

add heuristic names

Location:
branches/devel/Cbc/examples
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/examples/sample2.cpp

    r333 r655  
    197197
    198198  CbcRounding heuristic1(model);
     199  heuristic1.setHeuristicName("rounding");
    199200  model.addHeuristic(&heuristic1);
    200201
     
    202203
    203204  CbcHeuristicLocal heuristic2(model);
     205  heuristic2.setHeuristicName("join solutions");
    204206  model.addHeuristic(&heuristic2);
    205207
  • branches/devel/Cbc/examples/sample3.cpp

    r333 r655  
    146146
    147147  CbcRounding heuristic1(model);
     148  heuristic1.setHeuristicName("rounding");
    148149  model.addHeuristic(&heuristic1);
    149150
  • branches/devel/Cbc/examples/sample5.cpp

    r333 r655  
    225225
    226226  CbcRounding heuristic1(model);
     227  heuristic1.setHeuristicName("rounding");
    227228  model.addHeuristic(&heuristic1);
    228229
     
    230231
    231232  CbcHeuristicLocal heuristic2(model);
     233  heuristic2.setHeuristicName("join solutions");
    232234  model.addHeuristic(&heuristic2);
    233235
  • branches/devel/Cbc/examples/sample6.cpp

    r495 r655  
    182182
    183183  CbcRounding heuristic1(model);
     184  heuristic1.setHeuristicName("rounding");
    184185  model.addHeuristic(&heuristic1);
    185186
     
    187188
    188189  CbcHeuristicLocal heuristic2(model);
     190  heuristic2.setHeuristicName("join solutions");
    189191  model.addHeuristic(&heuristic2);
    190192
  • branches/devel/Cbc/examples/strategy2.cpp

    r582 r655  
    109109    heuristic.setMaximumRetries(2);
    110110    heuristic.setWhen(13);
     111    heuristic.setHeuristicName("feasibility pump");
    111112    model.addHeuristic(&heuristic);
    112113  }
     
    129130    CbcHeuristicLocal heuristic(model);
    130131    heuristic.setSearchType(1);
     132    heuristic.setHeuristicName("join solutions");
    131133    model.addHeuristic(&heuristic);
    132134  }
     
    146148  if (!found) {
    147149    CbcHeuristicGreedyCover heuristic(model);
     150    heuristic.setHeuristicName("greedy cover");
    148151    model.addHeuristic(&heuristic);
    149152  }
     
    163166  if (!found) {
    164167    CbcHeuristicGreedyEquality heuristic(model);
     168    heuristic.setHeuristicName("greedy equality");
    165169    model.addHeuristic(&heuristic);
    166170  }
     
    180184  if (!found) {
    181185    CbcHeuristicRINS heuristic(model);
     186    heuristic.setHeuristicName("RINS");
    182187    model.addHeuristic(&heuristic);
    183188  }
Note: See TracChangeset for help on using the changeset viewer.