Changeset 788 for stable/1.2
 Timestamp:
 Sep 21, 2007 2:28:44 PM (13 years ago)
 Location:
 stable/1.2/Cbc/src
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

stable/1.2/Cbc/src/CbcModel.cpp
r633 r788 5684 5684 */ 5685 5685 double 5686 CbcModel::checkSolution (double cutoff, constdouble *solution,5686 CbcModel::checkSolution (double cutoff, double *solution, 5687 5687 bool fixVariables, double objectiveValue) 5688 5688 … … 5785 5785 */ 5786 5786 if ((solver_>isProvenOptimal()(specialOptions_&4)!=0) && objectiveValue <= cutoff) { 5787 double * solution = new double[numberColumns];5788 5787 memcpy(solution ,solver_>getColSolution(),numberColumns*sizeof(double)) ; 5789 5788 … … 5823 5822 delete [] rowActivity ; 5824 5823 } 5825 delete [] solution;5826 5824 } else { 5827 5825 objectiveValue=1.0e50 ; … … 5978 5976 void 5979 5977 CbcModel::setBestSolution (CBC_Message how, 5980 double & objectiveValue, const double *solution ,5978 double & objectiveValue, const double *solutionIn, 5981 5979 bool fixVariables) 5982 5980 5983 5981 { 5982 double * solution=CoinCopyOfArray(solutionIn,solver_>getNumCols()); 5984 5983 if (!solverCharacteristics_>solutionAddsCuts()) { 5985 5984 // Can trust solution … … 6181 6180 delete [] candidate; 6182 6181 } 6182 delete [] solution; 6183 6183 return ; 6184 6184 } 
stable/1.2/Cbc/src/CbcModel.hpp
r480 r788 913 913 Previously computed objective value is now passed in (in case user does not do solve) 914 914 */ 915 double checkSolution(double cutoff, constdouble * solution,915 double checkSolution(double cutoff, double * solution, 916 916 bool fixVariables, double originalObjValue); 917 917 /** Test the current solution for feasiblility.
Note: See TracChangeset
for help on using the changeset viewer.