Changeset 1080


Ignore:
Timestamp:
Aug 13, 2007 6:50:01 AM (12 years ago)
Author:
forrest
Message:

add doHeuristics

Location:
trunk/Clp/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/CbcOrClpParam.cpp

    r1061 r1080  
    12651265                  "off",COMBINE);
    12661266  parameters[numberParameters-1].append("on");
     1267  parameters[numberParameters-1].append("do");
    12671268  parameters[numberParameters-1].setLonghelp
    12681269    (
    12691270     "This switches on a heuristic which does branch and cut on the problem given by just \
    12701271using variables which have appeared in one or more solutions. \
    1271 It obviously only tries after two or more solutions."
     1272It obviously only tries after two or more solutions. \
     1273The Do option switches on before preprocessing."
    12721274     );
    12731275  parameters[numberParameters++]=
     
    14151417  It is initialized to './'"
    14161418     );
     1419#ifdef COIN_HAS_CBC
     1420  parameters[numberParameters++]=
     1421    CbcOrClpParam("doH!euristic","Do heuristics before any preprocessing",
     1422                  DOHEURISTIC,3);
     1423  parameters[numberParameters-1].setLonghelp
     1424    (
     1425     "Normally heuristics are done in branch and bound.  It may be useful to do them outside. \
     1426Doing this may also set cutoff."
     1427     );
     1428#endif
    14171429#ifdef COIN_HAS_CLP
    14181430  parameters[numberParameters++]=
     
    15461558                    "off",FPUMP);
    15471559    parameters[numberParameters-1].append("on");
     1560    parameters[numberParameters-1].append("do");
    15481561  parameters[numberParameters-1].setLonghelp
    15491562    (
    15501563     "This switches on feasibility pump heuristic at root. This is due to Fischetti and Lodi \
    15511564and uses a sequence of Lps to try and get an integer feasible solution. \
    1552 Some fine tuning is available by passFeasibilityPump."
     1565Some fine tuning is available by passFeasibilityPump. Do options does heuristic before preprocessing"
    15531566     );
    15541567  parameters[numberParameters++]=
     
    16121625                  "off",GREEDY);
    16131626  parameters[numberParameters-1].append("on");
    1614   parameters[numberParameters-1].append("root");
     1627  parameters[numberParameters-1].append("do");
     1628  //parameters[numberParameters-1].append("root");
    16151629  parameters[numberParameters-1].setLonghelp
    16161630    (
    16171631     "Switches on a greedy heuristic which will try and obtain a solution.  It may just fix a \
    1618 percentage of variables and then try a small branch and cut run."
     1632percentage of variables and then try a small branch and cut run. \
     1633The Do option switches on before preprocessing."
    16191634     );
    16201635  parameters[numberParameters++]=
     
    23252340                  "off",ROUNDING);
    23262341  parameters[numberParameters-1].append("on");
    2327   parameters[numberParameters-1].setLonghelp
    2328     (
    2329      "This switches on a simple (but effective) rounding heuristic at each node of tree."
     2342  parameters[numberParameters-1].append("do");
     2343  parameters[numberParameters-1].setLonghelp
     2344    (
     2345     "This switches on a simple (but effective) rounding heuristic at each node of tree.  \
     2346The Do option switches on before preprocessing."
    23302347     );
    23312348#endif
  • trunk/Clp/src/CbcOrClpParam.hpp

    r1061 r1080  
    8787    OUTDUPROWS,USERCLP,MODELIN,
    8888
    89     BAB=351,MIPLIB,STRENGTHEN,PRIORITYIN,USERCBC,
     89    BAB=351,MIPLIB,STRENGTHEN,PRIORITYIN,USERCBC,DOHEURISTIC,
    9090
    9191    OSLSTUFF = 401,CBCSTUFF,
     
    175175  /// Sets current parameter option using string
    176176  void setCurrentOption (const std::string value );
     177  /// Returns current parameter option position
     178  inline int currentOptionAsInteger (  ) const
     179  { return currentKeyWord_; }
    177180  /// Sets int value
    178181  void setIntValue ( int value );
Note: See TracChangeset for help on using the changeset viewer.