Changeset 787
 Timestamp:
 Sep 21, 2007 1:57:32 PM (11 years ago)
 Location:
 stable/1.1/Cbc/src
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

stable/1.1/Cbc/src/CbcModel.cpp
r584 r787 5615 5615 */ 5616 5616 double 5617 CbcModel::checkSolution (double cutoff, constdouble *solution,5617 CbcModel::checkSolution (double cutoff, double *solution, 5618 5618 bool fixVariables, double objectiveValue) 5619 5619 … … 5716 5716 */ 5717 5717 if ((solver_>isProvenOptimal()(specialOptions_&4)!=0) && objectiveValue <= cutoff) { 5718 double * solution = new double[numberColumns];5719 5718 memcpy(solution ,solver_>getColSolution(),numberColumns*sizeof(double)) ; 5720 5719 … … 5754 5753 delete [] rowActivity ; 5755 5754 } 5756 delete [] solution;5757 5755 } else { 5758 5756 objectiveValue=1.0e50 ; … … 5909 5907 void 5910 5908 CbcModel::setBestSolution (CBC_Message how, 5911 double & objectiveValue, const double *solution ,5909 double & objectiveValue, const double *solutionIn, 5912 5910 bool fixVariables) 5913 5911 5914 5912 { 5913 double * solution=CoinCopyOfArray(solutionIn,solver_>getNumCols()); 5915 5914 if (!solverCharacteristics_>solutionAddsCuts()) { 5916 5915 // Can trust solution … … 6112 6111 delete [] candidate; 6113 6112 } 6113 delete [] solution; 6114 6114 return ; 6115 6115 } 
stable/1.1/Cbc/src/CbcModel.hpp
r395 r787 904 904 Previously computed objective value is now passed in (in case user does not do solve) 905 905 */ 906 double checkSolution(double cutoff, constdouble * solution,906 double checkSolution(double cutoff, double * solution, 907 907 bool fixVariables, double originalObjValue); 908 908 /** Test the current solution for feasiblility.
Note: See TracChangeset
for help on using the changeset viewer.