Ignore:
Timestamp:
Feb 20, 2019 8:07:32 AM (9 months ago)
Author:
unxusr
Message:

updated driver 3 and 4 examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cbc/examples/driver4.cpp

    r2469 r2498  
    255255      const double *bestSolution = model_->bestSolution();
    256256      assert(bestSolution);
    257       printf("value of solution is %g\n", model_->getObjValue());
    258       for (int i = 0; i < numberColumns; i++) {
    259         if (fabs(bestSolution[i]) > 1.0e-8)
    260           printf("%d %g\n", i, bestSolution[i]);
    261       }
     257      printf("event handler received a solution with cost %g\n", model_->getObjValue());
     258      // printing solution contents
     259      //for (int i = 0; i < numberColumns; i++) {
     260      //  if (fabs(bestSolution[i]) > 1.0e-8)
     261      //    printf("%d %g\n", i, bestSolution[i]);
     262      //}
    262263      return noAction; // carry on
    263264#endif
Note: See TracChangeset for help on using the changeset viewer.