class BbParaSolverPoolElement (This class includes information about a Solver status) More...
#include <bbParaSolverPool.h>
Public Member Functions | |
| BbParaSolverPoolElement (int inRank) | |
| constructor More... | |
| ~BbParaSolverPoolElement () | |
| destractor More... | |
| int | getRank () |
| get rank of the Solver More... | |
| ParaTask * | getCurrentNode () |
| get current solving BbParaNode More... | |
| BbParaNode * | getSelfSplitNodes () |
| get a list of nodes which are generated by self-split ramp-up More... | |
| BbParaNode * | extractSelfSplitNodes () |
| extract a list of nodes which are generated by self-split ramp-up More... | |
| void | addSubtreeRoot (BbParaNode *inNode) |
| add subtree root node More... | |
| void | makeSubtreeRootCurrent (BbParaNode *inNode) |
| make subtree root node current More... | |
| void | removeSubtreeRoot (BbParaNode *inNode) |
| remove subtree root node in self-split nodes list More... | |
| BbParaNode * | extractSubtreeRoot (BbParaNode *inNode) |
| extract subtree root node More... | |
| BbParaNode * | extractCurrentNode () |
| extract current solving BbParaNode More... | |
| void | deleteCurrentNode () |
| delete current solving BbParaNode More... | |
| BbParaSolverPoolElementPtr * | getSelectionHeapElement () |
| extract current solving BbParaNode More... | |
| void | setSelectionHeapElement (BbParaSolverPoolElementPtr *inSelectionHeapElement) |
| set selection heap element More... | |
| BbParaSolverPoolElementPtr * | getCollectingModeSolverHeapElement () |
| get collecting mode Solver heap element More... | |
| void | setCollectingModeSolverHeapElement (BbParaSolverPoolElementPtr *inCollectingModeSolverHeapElement) |
| set collecting mode Solver heap element More... | |
| long long | getNumOfNodesSolved () |
| get number of nodes solved More... | |
| int | getNumOfNodesLeft () |
| get number of nodes left More... | |
| void | setNumOfNodesSolved (long long inNumOfNodesSolved) |
| set number of nodes solved More... | |
| int | getNumOfDiffNodesSolved () |
| get number of nodes left difference between current number and that in the previous notification time More... | |
| void | setNumOfDiffNodesSolved (int inNumOfDiff) |
| set number of nodes left difference between current number and that in the previous notification time More... | |
| void | setNumOfNodesLeft (int inNumOfNodesLeft) |
| set number of nodes left More... | |
| void | setDualBoundValue (double dualBoundValue) |
| set dual bound value on paraNode More... | |
| int | getNumOfDiffNodesLeft () |
| get number of nodes left difference between current number and that in the previous notification time More... | |
| void | setNumOfDiffNodesLeft (int inNumOfDiff) |
| set number of nodes left difference between current number and that in the previous notification time More... | |
| double | getBestDualBoundValue () |
| get best dual bound value More... | |
| void | setBestDualBoundValue (double inBestDualBoundValue) |
| set best dual bound value More... | |
| void | activate (BbParaNode *inNode) |
| activate this Solver More... | |
| void | racingActivate () |
| activate this Solver as a racing Solver More... | |
| void | inactivate () |
| inactivate this Solver More... | |
| BbParaNode * | died () |
| kill this Solver More... | |
| SolverStatus | getStatus () |
| get Solver status More... | |
| void | interruptRequested () |
| set TerminateRequseted on Solver status More... | |
| void | terminateRequested () |
| set TerminateRequseted on Solver status More... | |
| void | terminated () |
| set Terminated on Solver status More... | |
| bool | isActive () |
| check if this Solver is active or not More... | |
| bool | isOutCollectingMode () |
| check if this Solver is out of collecting mode or not More... | |
| bool | isInCollectingMode () |
| check if this Solver is in collecting mode or not More... | |
| void | setCollectingMode (bool b) |
| set collecting mode More... | |
| bool | isCandidateOfCollecting () |
| check if this Solver is candidate of collecting mode Solver More... | |
| void | setCandidateOfCollecting (bool b) |
| set candidate of collecting mode Solver More... | |
| void | setTermState (ParaSolverTerminationState *inTermState) |
| set termination state More... | |
| ParaSolverTerminationState * | getTermState () |
| get termination state More... | |
| void | switchIntoEvaluation () |
| switch into evaluation stage More... | |
| void | switchOutEvaluation () |
| switch out of evaluation stage More... | |
| bool | isRacingStage () |
| check if this Solver is in racing stage More... | |
| bool | isEvaluationStage () |
| check if this Solver is in evaluation stage More... | |
| void | setNoGenerator () |
| make this Solver No generator More... | |
| bool | isGenerator () |
| check if this Solver is generator or not */ More... | |
| void | prohibitCollectingMode () |
| prohibits to be in collecting mode More... | |
| void | setCollectingIsAllowed () |
| allows to be in collecting mode More... | |
| bool | isCollectingProhibited () |
| check if this Solver cannot be allowed in collecting mode More... | |
| bool | isDualBoundGainTesting () |
| check if dual bound gain is testing in this Solver or not More... | |
| void | setDualBoundGainTesting (bool value) |
| set dual bound gain is testing value More... | |
Private Attributes | |
| int | rank |
| rank of the Solver More... | |
| SolverStatus | status |
| status of the Solver More... | |
| bool | collectingMode |
| indicate if current Solver is in collecting mode or not More... | |
| bool | candidateOfCollecting |
| indicate that this Solver is a candidate of collecting mode Solver More... | |
| bool | generator |
| this Solver can generate subproblems More... | |
| bool | collectingIsProhibited |
| collecting is temporary prohibited More... | |
| bool | dualBoundGainTesting |
| indicate that dual bound gain is testing or not More... | |
| BbParaNode * | currentNode |
| solving node More... | |
| BbParaNode * | selfSplitNodes |
| list of nodes generated by self-split ramp-up More... | |
| BbParaSolverPoolElementPtr * | selectionHeapElement |
| pointer to selection heap element More... | |
| BbParaSolverPoolElementPtr * | collectingModeSolverHeapElement |
| long long | numOfNodesSolved |
| number of nodes solved. -1 is the special value which means never updated in racing More... | |
| int | numOfDiffNodesSolved |
| number of nodes solved difference between current number and that in the previous notification time More... | |
| int | numOfNodesLeft |
| number of nodes left More... | |
| int | numOfDiffNodesLeft |
| number of nodes left difference between current number and that in the previous notification time More... | |
| double | bestDualBoundValue |
| best dual bound value of the Solver More... | |
| ParaSolverTerminationState * | termState |
| Solver termination statistics: for checkpoint. More... | |
class BbParaSolverPoolElement (This class includes information about a Solver status)
Definition at line 63 of file bbParaSolverPool.h.
| BbParaSolverPoolElement | ( | int | inRank | ) |
constructor
Definition at line 95 of file bbParaSolverPool.h.
destractor
Definition at line 122 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode, BbParaNode::next, BbParaSolverPoolElement::selfSplitNodes, and BbParaSolverPoolElement::termState.
| void activate | ( | BbParaNode * | inNode | ) |
activate this Solver
| inNode | pointer to BbParaNode object to activate Solver |
Definition at line 561 of file bbParaSolverPool.h.
References UG::Active, BbParaSolverPoolElement::bestDualBoundValue, BbParaSolverPoolElement::currentNode, BbParaNode::getDualBoundValue(), BbParaSolverPoolElement::numOfNodesLeft, BbParaSolverPoolElement::numOfNodesSolved, and BbParaSolverPoolElement::status.
Referenced by BbParaSolverPool::activateSolver().
| void addSubtreeRoot | ( | BbParaNode * | inNode | ) |
add subtree root node
add the end, since it would be most like to be solved in this order
| inNode | BbParaNode to be added |
Definition at line 219 of file bbParaSolverPool.h.
References ParaTask::isRootTask(), BbParaNode::next, and BbParaSolverPoolElement::selfSplitNodes.
| void deleteCurrentNode | ( | ) |
delete current solving BbParaNode
Definition at line 384 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode, and BbParaNode::next.
| BbParaNode * died | ( | ) |
kill this Solver
Definition at line 615 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::bestDualBoundValue, BbParaSolverPoolElement::candidateOfCollecting, BbParaSolverPoolElement::collectingIsProhibited, BbParaSolverPoolElement::collectingMode, BbParaSolverPoolElement::currentNode, UG::Dead, BbParaSolverPoolElement::dualBoundGainTesting, BbParaSolverPoolElement::numOfDiffNodesLeft, BbParaSolverPoolElement::numOfNodesLeft, BbParaSolverPoolElement::numOfNodesSolved, and BbParaSolverPoolElement::status.
Referenced by BbParaSolverPool::solverDied().
| BbParaNode * extractCurrentNode | ( | ) |
extract current solving BbParaNode
Definition at line 372 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode, and BbParaNode::next.
Referenced by BbParaSolverPool::extractCurrentNodeAndInactivate(), and BbParaSolverPool::resetCountersInSolver().
| BbParaNode * extractSelfSplitNodes | ( | ) |
extract a list of nodes which are generated by self-split ramp-up
Definition at line 172 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::selfSplitNodes.
Referenced by BbParaSolverPool::extractSelfSplitSubtreeRootNodes().
| BbParaNode * extractSubtreeRoot | ( | BbParaNode * | inNode | ) |
extract subtree root node
| inNode | BbParaNode to be removed |
Definition at line 326 of file bbParaSolverPool.h.
References BbParaNode::isSameNodeIdAs(), BbParaNode::next, BbParaSolverPoolElement::selfSplitNodes, and THROW_LOGICAL_ERROR1.
| double getBestDualBoundValue | ( | ) |
get best dual bound value
Definition at line 542 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::bestDualBoundValue.
Referenced by DescendingSelectionHeap::deleteElement(), AscendingSelectionHeap::deleteElement(), DescendingCollectingModeSolverHeap::deleteElement(), AscendingCollectingModeSolverHeap::deleteElement(), DescendingSelectionHeap::downHeap(), AscendingSelectionHeap::downHeap(), DescendingCollectingModeSolverHeap::downHeap(), AscendingCollectingModeSolverHeap::downHeap(), BbParaSolverPool::getDualBoundValue(), BbParaRacingSolverPool::getDualBoundValue(), BbParaSolverPoolForMinimization::getGlobalBestDualBoundValue(), BbParaRacingSolverPool::inactivateSolver(), BbParaSolverPoolForMinimization::switchInCollectingMode(), DescendingSelectionHeap::updateDualBoundValue(), AscendingSelectionHeap::updateDualBoundValue(), DescendingCollectingModeSolverHeap::updateDualBoundValue(), AscendingCollectingModeSolverHeap::updateDualBoundValue(), BbParaRacingSolverPool::updateSolverStatus(), BbParaSolverPoolForMinimization::updateSolverStatus(), DescendingSelectionHeap::upHeap(), AscendingSelectionHeap::upHeap(), DescendingCollectingModeSolverHeap::upHeap(), and AscendingCollectingModeSolverHeap::upHeap().
| BbParaSolverPoolElementPtr * getCollectingModeSolverHeapElement | ( | ) |
get collecting mode Solver heap element
Definition at line 430 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingModeSolverHeapElement.
Referenced by DescendingCollectingModeSolverHeap::deleteElement(), AscendingCollectingModeSolverHeap::deleteElement(), DescendingCollectingModeSolverHeap::updateDualBoundValue(), and AscendingCollectingModeSolverHeap::updateDualBoundValue().
| ParaTask * getCurrentNode | ( | ) |
get current solving BbParaNode
Definition at line 152 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode.
Referenced by BbParaSolverPool::currentSolvingNodehaeDescendant(), and BbParaSolverPool::getCurrentTask().
| int getNumOfDiffNodesLeft | ( | ) |
get number of nodes left difference between current number and that in the previous notification time
Definition at line 521 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfDiffNodesLeft.
Referenced by SelectionHeap::toString(), and CollectingModeSolverHeap::toString().
| int getNumOfDiffNodesSolved | ( | ) |
get number of nodes left difference between current number and that in the previous notification time
Definition at line 480 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfDiffNodesSolved.
| int getNumOfNodesLeft | ( | ) |
get number of nodes left
Definition at line 460 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfNodesLeft.
Referenced by BbParaRacingSolverPool::getNumNodesLeft(), BbParaSolverPool::getNumOfNodesLeft(), BbParaSolverPool::getNumOfNodesLeftInBestSolver(), BbParaSolverPool::inactivateSolver(), BbParaRacingSolverPool::isWinnerDecided(), BbParaSolverPool::resetCountersInSolver(), SelectionHeap::toString(), CollectingModeSolverHeap::toString(), BbParaRacingSolverPool::updateSolverStatus(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| long long getNumOfNodesSolved | ( | ) |
get number of nodes solved
Definition at line 450 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfNodesSolved.
Referenced by BbParaSolverPool::getNumOfNodesSolved(), BbParaRacingSolverPool::getNumOfNodesSolved(), and BbParaRacingSolverPool::updateSolverStatus().
| int getRank | ( | ) |
get rank of the Solver
Definition at line 142 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::rank.
Referenced by BbParaSolverPool::getBestSolver(), BbParaSolverPool::getGoodSolverSolvingEssentialNode(), BbParaSolverPool::inactivateSolver(), BbParaRacingSolverPool::isWinnerDecided(), BbParaSolverPool::resetCountersInSolver(), SelectionHeap::toString(), CollectingModeSolverHeap::toString(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| BbParaSolverPoolElementPtr * getSelectionHeapElement | ( | ) |
extract current solving BbParaNode
Definition at line 410 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::selectionHeapElement.
Referenced by DescendingSelectionHeap::deleteElement(), AscendingSelectionHeap::deleteElement(), DescendingSelectionHeap::updateDualBoundValue(), and AscendingSelectionHeap::updateDualBoundValue().
| BbParaNode * getSelfSplitNodes | ( | ) |
get a list of nodes which are generated by self-split ramp-up
Definition at line 162 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::selfSplitNodes.
| SolverStatus getStatus | ( | ) |
get Solver status
Definition at line 636 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::status.
Referenced by BbParaSolverPool::addNewSubtreeRootNode(), BbParaSolverPool::deleteCurrentSubtreeRootNode(), BbParaSolverPool::makeSubtreeRootNodeCurrent(), BbParaSolverPool::removeSubtreeRootNode(), SelectionHeap::toString(), and CollectingModeSolverHeap::toString().
| ParaSolverTerminationState * getTermState | ( | ) |
get termination state
Definition at line 747 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::termState.
Referenced by BbParaSolverPool::getTermState(), and BbParaSolverPool::writeSolverStatisticsToCheckpointFile().
| void inactivate | ( | ) |
inactivate this Solver
do not touch "generator"
Definition at line 591 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::bestDualBoundValue, BbParaSolverPoolElement::candidateOfCollecting, BbParaSolverPoolElement::collectingIsProhibited, BbParaSolverPoolElement::collectingMode, BbParaSolverPoolElement::currentNode, BbParaSolverPoolElement::dualBoundGainTesting, UG::Inactive, BbParaSolverPoolElement::numOfDiffNodesLeft, BbParaSolverPoolElement::numOfNodesLeft, BbParaSolverPoolElement::numOfNodesSolved, and BbParaSolverPoolElement::status.
Referenced by BbParaRacingSolverPool::inactivateSolver(), BbParaSolverPool::inactivateSolver(), and BbParaSolverPool::resetCountersInSolver().
| void interruptRequested | ( | ) |
set TerminateRequseted on Solver status
Definition at line 645 of file bbParaSolverPool.h.
References UG::InterruptRequested, and BbParaSolverPoolElement::status.
Referenced by BbParaSolverPool::interruptRequested(), and BbParaRacingSolverPool::interruptRequested().
| bool isActive | ( | ) |
check if this Solver is active or not
Definition at line 676 of file bbParaSolverPool.h.
References UG::Active, and BbParaSolverPoolElement::status.
Referenced by BbParaSolverPool::isSolverActive().
| bool isCandidateOfCollecting | ( | ) |
check if this Solver is candidate of collecting mode Solver
Definition at line 716 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::candidateOfCollecting.
| bool isCollectingProhibited | ( | ) |
check if this Solver cannot be allowed in collecting mode
Definition at line 834 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingIsProhibited.
Referenced by BbParaSolverPool::inactivateSolver(), BbParaSolverPool::resetCountersInSolver(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| bool isDualBoundGainTesting | ( | ) |
check if dual bound gain is testing in this Solver or not
Definition at line 844 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::dualBoundGainTesting.
Referenced by BbParaSolverPool::isDualBounGainTesting().
| bool isEvaluationStage | ( | ) |
check if this Solver is in evaluation stage
Definition at line 787 of file bbParaSolverPool.h.
References UG::RacingEvaluation, and BbParaSolverPoolElement::status.
| bool isGenerator | ( | ) |
check if this Solver is generator or not */
Definition at line 806 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::generator.
Referenced by BbParaSolverPool::inactivateSolver(), BbParaSolverPool::resetCountersInSolver(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| bool isInCollectingMode | ( | ) |
check if this Solver is in collecting mode or not
Definition at line 696 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingMode.
Referenced by BbParaSolverPool::isSolverInCollectingMode(), SelectionHeap::toString(), CollectingModeSolverHeap::toString(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| bool isOutCollectingMode | ( | ) |
check if this Solver is out of collecting mode or not
Definition at line 686 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingMode.
Referenced by BbParaSolverPool::inactivateSolver(), BbParaSolverPool::resetCountersInSolver(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| bool isRacingStage | ( | ) |
check if this Solver is in racing stage
Definition at line 777 of file bbParaSolverPool.h.
References UG::Racing, and BbParaSolverPoolElement::status.
Referenced by BbParaRacingSolverPool::getStrActiveSolerNumbers().
| void makeSubtreeRootCurrent | ( | BbParaNode * | inNode | ) |
make subtree root node current
| inNode | BbParaNode to become current |
Definition at line 243 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode, BbParaNode::isSameNodeIdAs(), BbParaNode::next, BbParaSolverPoolElement::selfSplitNodes, and THROW_LOGICAL_ERROR1.
| void prohibitCollectingMode | ( | ) |
prohibits to be in collecting mode
Definition at line 815 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingIsProhibited.
Referenced by BbParaSolverPool::activateSolver().
| void racingActivate | ( | ) |
activate this Solver as a racing Solver
Definition at line 578 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::bestDualBoundValue, BbParaSolverPoolElement::currentNode, BbParaSolverPoolElement::numOfNodesLeft, BbParaSolverPoolElement::numOfNodesSolved, UG::Racing, and BbParaSolverPoolElement::status.
Referenced by BbParaRacingSolverPool::activate().
| void removeSubtreeRoot | ( | BbParaNode * | inNode | ) |
remove subtree root node in self-split nodes list
| inNode | BbParaNode to be removed |
Definition at line 287 of file bbParaSolverPool.h.
References BbParaNode::isSameNodeIdAs(), BbParaNode::next, BbParaSolverPoolElement::selfSplitNodes, and THROW_LOGICAL_ERROR1.
| void setBestDualBoundValue | ( | double | inBestDualBoundValue | ) |
set best dual bound value
| inBestDualBoundValue | best dual bound value |
Definition at line 551 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::bestDualBoundValue.
Referenced by DescendingSelectionHeap::updateDualBoundValue(), AscendingSelectionHeap::updateDualBoundValue(), DescendingCollectingModeSolverHeap::updateDualBoundValue(), and AscendingCollectingModeSolverHeap::updateDualBoundValue().
| void setCandidateOfCollecting | ( | bool | b | ) |
set candidate of collecting mode Solver
| b | true or false to be set on candidate flag |
Definition at line 725 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::candidateOfCollecting.
Referenced by BbParaSolverPoolForMinimization::switchInCollectingMode(), and BbParaSolverPool::switchOutCollectingMode().
| void setCollectingIsAllowed | ( | ) |
allows to be in collecting mode
Definition at line 824 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingIsProhibited.
Referenced by BbParaSolverPool::inactivateSolver(), BbParaSolverPool::resetCountersInSolver(), and BbParaSolverPool::setCollectingIsAllowed().
| void setCollectingMode | ( | bool | b | ) |
set collecting mode
| b | true or false to be set on collecting mode |
Definition at line 705 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingMode.
Referenced by BbParaSolverPool::enforcedSwitchOutCollectingMode(), BbParaSolverPool::sendSwitchOutCollectingModeIfNecessary(), BbParaSolverPoolForMinimization::switchInCollectingMode(), and BbParaSolverPool::switchInCollectingToSolver().
| void setCollectingModeSolverHeapElement | ( | BbParaSolverPoolElementPtr * | inCollectingModeSolverHeapElement | ) |
set collecting mode Solver heap element
| inCollectingModeSolverHeapElement | collecting mode Solver heap element |
Definition at line 439 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::collectingModeSolverHeapElement.
Referenced by DescendingCollectingModeSolverHeap::deleteElement(), AscendingCollectingModeSolverHeap::deleteElement(), DescendingCollectingModeSolverHeap::downHeap(), AscendingCollectingModeSolverHeap::downHeap(), CollectingModeSolverHeap::remove(), DescendingCollectingModeSolverHeap::upHeap(), and AscendingCollectingModeSolverHeap::upHeap().
| void setDualBoundGainTesting | ( | bool | value | ) |
set dual bound gain is testing value
| value | dual bound gain |
Definition at line 853 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::dualBoundGainTesting.
Referenced by BbParaSolverPool::activateSolver(), BbParaSolverPool::switchOutCollectingMode(), and BbParaSolverPoolForMinimization::updateSolverStatus().
| void setDualBoundValue | ( | double | dualBoundValue | ) |
set dual bound value on paraNode
| dualBoundValue | dual bound value |
Definition at line 510 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::currentNode, and BbParaSolverPoolElement::setDualBoundValue().
Referenced by BbParaSolverPoolElement::setDualBoundValue().
| void setNoGenerator | ( | ) |
make this Solver No generator
Definition at line 796 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::generator.
Referenced by BbParaSolverPool::BbParaSolverPool().
| void setNumOfDiffNodesLeft | ( | int | inNumOfDiff | ) |
set number of nodes left difference between current number and that in the previous notification time
| inNumOfDiff | set number of nodes left difference between current number and that in the previous notification time |
Definition at line 530 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfDiffNodesLeft.
Referenced by BbParaRacingSolverPool::updateSolverStatus().
| void setNumOfDiffNodesSolved | ( | int | inNumOfDiff | ) |
set number of nodes left difference between current number and that in the previous notification time
| inNumOfDiff | number of nodes left difference between current number and that in the previous notification time |
Definition at line 489 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfDiffNodesSolved.
Referenced by BbParaRacingSolverPool::updateSolverStatus().
| void setNumOfNodesLeft | ( | int | inNumOfNodesLeft | ) |
set number of nodes left
| inNumOfNodesLeft | number of nodes left |
Definition at line 500 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfNodesLeft.
Referenced by BbParaSolverPool::activateSolver(), and BbParaRacingSolverPool::updateSolverStatus().
| void setNumOfNodesSolved | ( | long long | inNumOfNodesSolved | ) |
set number of nodes solved
| inNumOfNodesSolved | number of nodes solved |
Definition at line 469 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::numOfNodesSolved.
Referenced by BbParaRacingSolverPool::updateSolverStatus().
| void setSelectionHeapElement | ( | BbParaSolverPoolElementPtr * | inSelectionHeapElement | ) |
set selection heap element
| inSelectionHeapElement | selection heap element |
Definition at line 419 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::selectionHeapElement.
Referenced by DescendingSelectionHeap::deleteElement(), AscendingSelectionHeap::deleteElement(), DescendingSelectionHeap::downHeap(), AscendingSelectionHeap::downHeap(), SelectionHeap::remove(), DescendingSelectionHeap::upHeap(), and AscendingSelectionHeap::upHeap().
| void setTermState | ( | ParaSolverTerminationState * | inTermState | ) |
set termination state
| inTermState | termination state to be set |
Definition at line 735 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::termState.
Referenced by BbParaSolverPool::setTermState().
| void switchIntoEvaluation | ( | ) |
switch into evaluation stage
Definition at line 756 of file bbParaSolverPool.h.
References UG::Racing, UG::RacingEvaluation, and BbParaSolverPoolElement::status.
Referenced by BbParaRacingSolverPool::updateSolverStatus().
| void switchOutEvaluation | ( | ) |
switch out of evaluation stage
Definition at line 766 of file bbParaSolverPool.h.
References UG::Racing, UG::RacingEvaluation, and BbParaSolverPoolElement::status.
Referenced by BbParaRacingSolverPool::updateSolverStatus().
| void terminated | ( | ) |
set Terminated on Solver status
Definition at line 665 of file bbParaSolverPool.h.
References UG::Inactive, UG::InterruptRequested, BbParaSolverPoolElement::status, UG::Terminated, and UG::TerminateRequested.
Referenced by BbParaSolverPool::terminated(), and BbParaRacingSolverPool::terminated().
| void terminateRequested | ( | ) |
set TerminateRequseted on Solver status
Definition at line 655 of file bbParaSolverPool.h.
References BbParaSolverPoolElement::status, and UG::TerminateRequested.
Referenced by BbParaSolverPool::terminateRequested(), and BbParaRacingSolverPool::terminateRequested().
|
private |
best dual bound value of the Solver
Definition at line 87 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::activate(), BbParaSolverPoolElement::died(), BbParaSolverPoolElement::getBestDualBoundValue(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::racingActivate(), and BbParaSolverPoolElement::setBestDualBoundValue().
|
private |
indicate that this Solver is a candidate of collecting mode Solver
Definition at line 69 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::died(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::isCandidateOfCollecting(), and BbParaSolverPoolElement::setCandidateOfCollecting().
|
private |
collecting is temporary prohibited
Definition at line 71 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::died(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::isCollectingProhibited(), BbParaSolverPoolElement::prohibitCollectingMode(), and BbParaSolverPoolElement::setCollectingIsAllowed().
|
private |
indicate if current Solver is in collecting mode or not
Definition at line 68 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::died(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::isInCollectingMode(), BbParaSolverPoolElement::isOutCollectingMode(), and BbParaSolverPoolElement::setCollectingMode().
|
private |
Definition at line 76 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::getCollectingModeSolverHeapElement(), and BbParaSolverPoolElement::setCollectingModeSolverHeapElement().
|
private |
solving node
Definition at line 73 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::activate(), BbParaSolverPoolElement::deleteCurrentNode(), BbParaSolverPoolElement::died(), BbParaSolverPoolElement::extractCurrentNode(), BbParaSolverPoolElement::getCurrentNode(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::makeSubtreeRootCurrent(), BbParaSolverPoolElement::racingActivate(), BbParaSolverPoolElement::setDualBoundValue(), and BbParaSolverPoolElement::~BbParaSolverPoolElement().
|
private |
indicate that dual bound gain is testing or not
Definition at line 72 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::died(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::isDualBoundGainTesting(), and BbParaSolverPoolElement::setDualBoundGainTesting().
|
private |
this Solver can generate subproblems
Definition at line 70 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::isGenerator(), and BbParaSolverPoolElement::setNoGenerator().
|
private |
number of nodes left difference between current number and that in the previous notification time
Definition at line 85 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::died(), BbParaSolverPoolElement::getNumOfDiffNodesLeft(), BbParaSolverPoolElement::inactivate(), and BbParaSolverPoolElement::setNumOfDiffNodesLeft().
|
private |
number of nodes solved difference between current number and that in the previous notification time
Definition at line 82 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::getNumOfDiffNodesSolved(), and BbParaSolverPoolElement::setNumOfDiffNodesSolved().
|
private |
number of nodes left
Definition at line 84 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::activate(), BbParaSolverPoolElement::died(), BbParaSolverPoolElement::getNumOfNodesLeft(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::racingActivate(), and BbParaSolverPoolElement::setNumOfNodesLeft().
|
private |
number of nodes solved. -1 is the special value which means never updated in racing
Definition at line 80 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::activate(), BbParaSolverPoolElement::died(), BbParaSolverPoolElement::getNumOfNodesSolved(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::racingActivate(), and BbParaSolverPoolElement::setNumOfNodesSolved().
|
private |
rank of the Solver
Definition at line 66 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::getRank().
|
private |
pointer to selection heap element
Definition at line 75 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::getSelectionHeapElement(), and BbParaSolverPoolElement::setSelectionHeapElement().
|
private |
list of nodes generated by self-split ramp-up
Definition at line 74 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::addSubtreeRoot(), BbParaSolverPoolElement::extractSelfSplitNodes(), BbParaSolverPoolElement::extractSubtreeRoot(), BbParaSolverPoolElement::getSelfSplitNodes(), BbParaSolverPoolElement::makeSubtreeRootCurrent(), BbParaSolverPoolElement::removeSubtreeRoot(), and BbParaSolverPoolElement::~BbParaSolverPoolElement().
|
private |
status of the Solver
Definition at line 67 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::activate(), BbParaSolverPoolElement::died(), BbParaSolverPoolElement::getStatus(), BbParaSolverPoolElement::inactivate(), BbParaSolverPoolElement::interruptRequested(), BbParaSolverPoolElement::isActive(), BbParaSolverPoolElement::isEvaluationStage(), BbParaSolverPoolElement::isRacingStage(), BbParaSolverPoolElement::racingActivate(), BbParaSolverPoolElement::switchIntoEvaluation(), BbParaSolverPoolElement::switchOutEvaluation(), BbParaSolverPoolElement::terminated(), and BbParaSolverPoolElement::terminateRequested().
|
private |
Solver termination statistics: for checkpoint.
Definition at line 88 of file bbParaSolverPool.h.
Referenced by BbParaSolverPoolElement::getTermState(), BbParaSolverPoolElement::setTermState(), and BbParaSolverPoolElement::~BbParaSolverPoolElement().