[CHiPPS] About change Search strategy In Alps

Yan Xu Yan.Xu at sas.com
Wed May 8 10:34:20 EDT 2013


This probably won’t work. The search strategy is set in function broker’s setupKnowledgePools();

You might want to write your own strategy in a similar way in AlpsSearchStrategy.h/cpp, add it to  setupKnowledgePools(). You can get timer through broker_ in subtree data structure.


From: chipps-bounces at list.coin-or.org [mailto:chipps-bounces at list.coin-or.org] On Behalf Of ???
Sent: Wednesday, May 08, 2013 9:47 AM
To: chipps
Subject: [CHiPPS] About change Search strategy In Alps

Dera Sir,
            I am trying to change search strategy in Alps.
            Here is the idea, at first I use best-first, after 3 minutes, change to depth-first.
            I use the code bellow to do this:

            if(treeSelection_->getType() == 0)
         {
            if(timer_.getWallClock() >= 180)
            {
                treeSelection_ = new AlpsTreeSelectionDepth;
                nodeSelection_ = new AlpsNodeSelectionDepth;
                subTreePool_->setComparison(*treeSelection_);
                workingSubTree_->nodePool()->setNodeSelection(*nodeSelection_);
            }
        }

              I add this code in the loops 'while(true)' of masterMain, hubMain and workerMain in AlpsKnowledgeBrokerMPI.cpp.

           But, the result is Segmentation fault in rank 0.

            Here is the question,
            First, could I change search strategy like this?
            Second, if I could do this, is there any code else I should change?
            Or is there other ways to change search strategy when the searching still is running?

    Best wishes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/chipps/attachments/20130508/4e947b38/attachment.html>


More information about the CHiPPS mailing list