Changeset 1540


Ignore:
Timestamp:
Jan 19, 2010 5:09:45 PM (10 years ago)
Author:
pbonami
Message:

Fix to feasibility pump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Bonmin/src/CbcBonmin/Heuristics/BonHeuristicFPump.cpp

    r1537 r1540  
    8484      //      bestSolutionValue = model_->getObjValue();
    8585      integerSolutionAlreadyExists = true;
    86       assert(solutionValue < 1.0e-40);
     86      assert(solutionValue < 1.0e50);
    8787    }
    8888
     
    184184    while(numberFractionalVariables) {
    185185      iteration++;
     186      std::cerr<<"In iteration "<<iteration<<std::endl;
    186187      if(iteration > maxNumberIterations) {
    187188        break;
     
    445446    double* jac_g = new double [nnz_jac_g];
    446447    double* zero_sol = new double [numberColumns_];
    447     memset(zero_sol, 0, numberColumns_ * sizeof(double));
     448    minlp_->get_starting_point(numberColumns_, 1, zero_sol, 0, NULL, NULL, numberRows_, 0, NULL);
     449    //memset(zero_sol, 0, numberColumns_ * sizeof(double));
    448450    minlp_->eval_jac_g(numberColumns_, zero_sol, true,
    449451                       numberRows_, nnz_jac_g,
Note: See TracChangeset for help on using the changeset viewer.