Changeset 1071
 Timestamp:
 Sep 17, 2008 6:59:57 AM (10 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/Cbc/src/CbcSolver.cpp
r1069 r1071 3690 3690 #if NEW_STYLE_SOLVER==0 3691 3691 bool noPrinting_=noPrinting; 3692 #endif 3692 #endif 3693 // Say no resolve after cuts 3694 //model_.setResolveAfterTakeOffCuts(false); 3693 3695 // see if log in list 3694 3696 for (int i=1;i<argc;i++) { … … 7853 7855 } 7854 7856 ClpSimplex * lpSolver = clpSolver>getModelPtr(); 7855 // Save bounds on processed model7856 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 }7875 7857 lpSolver>setSpecialOptions(lpSolver>specialOptions()IN_BRANCH_AND_BOUND); // say is Cbc (and in branch and bound) 7876 7858 process.postProcess(*babModel_>solver()); … … 9608 9590 if (printMode!=5) { 9609 9591 // Write solution header (suggested by Luigi Poderico) 9592 lpSolver>computeObjectiveValue(false); 9610 9593 double objValue = lpSolver>getObjValue()*lpSolver>getObjSense(); 9611 9594 int iStat = lpSolver>status();
Note: See TracChangeset
for help on using the changeset viewer.