Ignore:
Timestamp:
Sep 17, 2008 6:59:57 AM (11 years ago)
Author:
forrest
Message:

fix CbcSolver?.cpp

File:
1 edited

Legend:

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

    r1069 r1071  
    36903690#if NEW_STYLE_SOLVER==0
    36913691  bool noPrinting_=noPrinting;
    3692 #endif
     3692#endif 
     3693  // Say no resolve after cuts
     3694  //model_.setResolveAfterTakeOffCuts(false);
    36933695  // see if log in list
    36943696  for (int i=1;i<argc;i++) {
     
    78537855                  }
    78547856                  ClpSimplex * lpSolver = clpSolver->getModelPtr();
    7855                   // Save bounds on processed model
    7856                   const int * originalColumns = process.originalColumns();
    7857                   int numberColumns2 = clpSolver->getNumCols();
    7858                   double * solution2 = new double[n];
    7859                   double * lower2 = new double [n];
    7860                   double * upper2 = new double [n];
    7861                   for (int i=0;i<n;i++) {
    7862                     solution2[i]=COIN_DBL_MAX;
    7863                     lower2[i]=COIN_DBL_MAX;
    7864                     upper2[i]=-COIN_DBL_MAX;
    7865                   }
    7866                   const double *columnLower = clpSolver->getColLower() ;
    7867                   const double * columnUpper = clpSolver->getColUpper() ;
    7868                   const double * solution = babModel_->bestSolution();
    7869                   for (int i=0;i<numberColumns2;i++) {
    7870                     int jColumn = originalColumns[i];
    7871                     solution2[jColumn]=solution[i];
    7872                     lower2[jColumn]=columnLower[i];
    7873                     upper2[jColumn]=columnUpper[i];
    7874                   }
    78757857                  lpSolver->setSpecialOptions(lpSolver->specialOptions()|IN_BRANCH_AND_BOUND); // say is Cbc (and in branch and bound)
    78767858                  process.postProcess(*babModel_->solver());
     
    96089590                if (printMode!=5) {
    96099591                  // Write solution header (suggested by Luigi Poderico)
     9592                  lpSolver->computeObjectiveValue(false);
    96109593                  double objValue = lpSolver->getObjValue()*lpSolver->getObjSense();
    96119594                  int iStat = lpSolver->status();
Note: See TracChangeset for help on using the changeset viewer.