Changeset 555


Ignore:
Timestamp:
May 28, 2007 9:31:29 AM (12 years ago)
Author:
pbonami
Message:

Get point just solved by Ipopt in generateCuts

Location:
branches/Couenne/Couenne/src/convex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Couenne/Couenne/src/convex/CouenneCutGenerator.h

    r545 r555  
    1010#ifndef COUENNE_CUT_GENERATOR_H
    1111#define COUENNE_CUT_GENERATOR_H
    12 
    1312#include <BonOaDecBase.hpp>
    1413#include <OsiRowCut.hpp>
  • branches/Couenne/Couenne/src/convex/generateCuts.cpp

    r553 r555  
    8383  Bonmin::BabInfo * babInfo = dynamic_cast <Bonmin::BabInfo *> (si.getAuxiliaryInfo ());
    8484
    85   if (babInfo)
     85  if (babInfo){
    8686    babInfo -> setFeasibleNode ();
    87 
     87   
     88    // PIERRE -> PIETRO
     89    //HERE IS THE CODE TO OBTAIN SOLUTION JUST FOUND BY NLP SOLVER (AUXILIARIES SHOULD BE
     90    //CORRECT. SOLUTION SHOULD BE THE ONE FOUND AT THE NODE EVEN IF IT IS NOT AS GOOD AS THE
     91    // BEST KNOWN.
     92    // YOU CAN DELETE THE COMMENT
     93    std::cout<<"Nlp solved: "<< (babInfo -> nlpSolution() != NULL) <<std::endl;
     94    const double * nlpSol = babInfo -> nlpSolution();
     95    babInfo -> setHasNlpSolution(false);//Have to reset it after use otherwise will stay true at next processed node.
     96  }
    8897  double now   = CoinCpuTime ();
    8998  int    ncols = problem_ -> nVars () + problem_ -> nAuxs ();
Note: See TracChangeset for help on using the changeset viewer.