Ignore:
Timestamp:
May 10, 2007 5:36:03 AM (14 years ago)
Author:
forrest
Message:

for heuristics and quadratic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Cbc/src/CbcSolver.cpp

    r603 r604  
    22592259              ClpSimplex * model2 = lpSolver;
    22602260              if (dualize) {
     2261                //printf("dualize %d\n",dualize);
    22612262                model2 = ((ClpSimplexOther *) model2)->dualOfModel();
    22622263                printf("Dual of model has %d rows and %d columns\n",
     
    23802381                double * solution = NULL;
    23812382                if (testOsiOptions<10) {
    2382                   solution = linkSolver->nonlinearSLP(slpValue,1.0e-5);
    2383                 } else {
     2383                  solution = linkSolver->nonlinearSLP(slpValue>0 ? slpValue : 20 ,1.0e-5);
     2384                } else if (testOsiOptions==10) {
    23842385                  CoinModel coinModel = *linkSolver->coinModel();
    23852386                  ClpSimplex * tempModel = approximateSolution(coinModel,slpValue>0 ? slpValue : 20 ,1.0e-5,0);
     
    40134014                      //choose.setNumberBeforeTrusted(2000);
    40144015                      //choose.setNumberStrong(20);
     4016                    }
     4017                    // For temporary testing of heuristics
     4018                    //int testOsiOptions = parameters[whichParam(TESTOSI,numberParameters,parameters)].intValue();
     4019                    if (testOsiOptions>=10) {
     4020                      printf("*** Temp heuristic with mode %d\n",testOsiOptions-10);
     4021                      OsiSolverLink * solver3 = dynamic_cast<OsiSolverLink *> (babModel->solver());
     4022                      assert (solver3) ;
     4023                      double * solution = solver3->heuristicSolution(slpValue>0 ? slpValue : 20 ,1.0e-5,testOsiOptions-10);
     4024                      assert(solution);
    40154025                    }
    40164026#endif
Note: See TracChangeset for help on using the changeset viewer.