Changeset 461 for trunk/ClpSolve.cpp


Ignore:
Timestamp:
Oct 1, 2004 4:01:01 PM (16 years ago)
Author:
forrest
Message:

Trying to make faster

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpSolve.cpp

    r460 r461  
    9292  }
    9393  ClpPresolve pinfo;
     94  int presolveOptions = options.getSpecialOption(4);
     95  if ((presolveOptions&0xffff)!=0)
     96    pinfo.setPresolveActions(presolveOptions);
     97  int printOptions = options.getSpecialOption(5);
     98  if ((printOptions&1)!=0)
     99    pinfo.statistics();
    94100  double timePresolve=0.0;
    95101  double timeIdiot=0.0;
     
    14451451  numberPasses_=5;
    14461452  int i;
    1447   for (i=0;i<4;i++)
     1453  for (i=0;i<6;i++)
    14481454    options_[i]=0;
    1449   for (i=0;i<4;i++)
     1455  for (i=0;i<6;i++)
    14501456    extraInfo_[i]=-1;
    14511457}
     
    14581464  numberPasses_=rhs.numberPasses_;
    14591465  int i;
    1460   for ( i=0;i<4;i++)
     1466  for ( i=0;i<6;i++)
    14611467    options_[i]=rhs.options_[i];
    1462   for ( i=0;i<4;i++)
     1468  for ( i=0;i<6;i++)
    14631469    extraInfo_[i]=rhs.extraInfo_[i];
    14641470}
     
    14721478    numberPasses_=rhs.numberPasses_;
    14731479    int i;
    1474     for (i=0;i<4;i++)
     1480    for (i=0;i<6;i++)
    14751481      options_[i]=rhs.options_[i];
    1476     for (i=0;i<4;i++)
     1482    for (i=0;i<6;i++)
    14771483      extraInfo_[i]=rhs.extraInfo_[i];
    14781484  }
     
    14841490{
    14851491}
    1486 /*   which translation is:
    1487      which:
    1488      0 - startup in Dual  (nothing if basis exists).:
    1489              0 - no basis, 1 crash
    1490      1 - startup in Primal (nothing if basis exists):
    1491         0 - use initiative
    1492         1 - use crash
    1493         2 - use idiot and look at further info
    1494         3 - use sprint and look at further info
    1495         4 - use all slack
    1496         5 - use initiative but no idiot
    1497         6 - use initiative but no sprint
    1498         7 - use initiative but no crash
    1499         8 - do allslack or idiot
    1500         9 - do allslack or sprint
    1501      2 - interrupt handling - 0 yes, 1 no (for threadsafe)
    1502      3 - whether to make +- 1matrix - 0 yes, 1 no
    1503 */
     1492// See header file for deatils
    15041493void
    15051494ClpSolve::setSpecialOption(int which,int value,int extraInfo)
Note: See TracChangeset for help on using the changeset viewer.