class BbParaSolverState (ParaSolver state object for notification message) More...
#include <bbParaSolverState.h>
Public Member Functions | |
| BbParaSolverState () | |
| default constructor More... | |
| BbParaSolverState (int inRacingStage, unsigned int inNotificationId, int inLcId, int inGlobalSubtreeId, long long inNodesSolved, int inNodesLeft, double inBestDualBoundValue, double inGlobalBestPrimalBoundValue, double inDetTime, double inAverageDualBoundGain) | |
| constructor More... | |
| virtual | ~BbParaSolverState () |
| destractor More... | |
| bool | isRacingStage () |
| getter of isRacingStage More... | |
| unsigned int | getNotificaionId () |
| getter of notification id More... | |
| int | getLcId () |
| getter of LoadCoordintor id More... | |
| int | getGlobalSubtreeId () |
| getter of global subtree id More... | |
| double | getSolverLocalBestDualBoundValue () |
| gettter of best dual bound value More... | |
| double | getGlobalBestPrimalBoundValue () |
| get global best primal bound value that the notification Solver has More... | |
| long long | getNNodesSolved () |
| getter of number of nodes solved by the notification Solver More... | |
| int | getNNodesLeft () |
| getter of number of nodes left by the notification Solver More... | |
| double | getDeterministicTime () |
| getter of deterministic time More... | |
| double | getAverageDualBoundGain () |
| getter of average dual bound gain received More... | |
| std::string | toString () |
| stringfy BbParaSolverState More... | |
Public Member Functions inherited from ParaSolverState | |
| ParaSolverState () | |
| default constructor More... | |
| ParaSolverState (const ParaSolverState ¶SolverState) | |
| copy constructor More... | |
| ParaSolverState (int inRacingStage, unsigned int inNotificationId, int inLcId, int inGlobalSubtreeIdInLc, double inDetTime) | |
| constructor More... | |
| virtual | ~ParaSolverState () |
| destractor More... | |
| bool | isRacingStage () |
| getter of isRacingStage More... | |
| unsigned int | getNotificaionId () |
| getter of notification id More... | |
| int | getLcId () |
| getter of LoadCoordintor id More... | |
| int | getGlobalSubtreeId () |
| getter of global subtree id More... | |
| double | getDeterministicTime () |
| getter of deterministic time More... | |
| virtual std::string | toString ()=0 |
| stringfy ParaSolverState More... | |
| virtual void | send (ParaComm *comm, int destination, int tag)=0 |
| send this object More... | |
| virtual void | receive (ParaComm *comm, int source, int tag)=0 |
| receive this object More... | |
Protected Attributes | |
| long long | nNodesSolved |
| number of nodes solved More... | |
| int | nNodesLeft |
| number of remaining nodes More... | |
| double | bestDualBoundValue |
| best dual bound value in that of remaining nodes More... | |
| double | globalBestPrimalBoundValue |
| global best primal bound value More... | |
| double | averageDualBoundGain |
| average dual bound gain received More... | |
Protected Attributes inherited from ParaSolverState | |
| int | racingStage |
| if this value is 1, solver is in racing stage More... | |
| unsigned int | notificationId |
| id for this notification More... | |
| int | lcId |
| lc id of current ParaTask More... | |
| int | globalSubtreeIdInLc |
| global subtree id of current ParaTask More... | |
| double | detTime |
| deterministic time, -1: should be non-deterministic More... | |
class BbParaSolverState (ParaSolver state object for notification message)
Definition at line 51 of file bbParaSolverState.h.
default constructor
Definition at line 72 of file bbParaSolverState.h.
| BbParaSolverState | ( | int | inRacingStage, |
| unsigned int | inNotificationId, | ||
| int | inLcId, | ||
| int | inGlobalSubtreeId, | ||
| long long | inNodesSolved, | ||
| int | inNodesLeft, | ||
| double | inBestDualBoundValue, | ||
| double | inGlobalBestPrimalBoundValue, | ||
| double | inDetTime, | ||
| double | inAverageDualBoundGain | ||
| ) |
constructor
| inRacingStage | indicate if Solver is in racing stage or not |
| inNotificationId | id for this notification |
| inLcId | lc id of current ParaNode |
| inGlobalSubtreeId | global subtree id of current ParaNode |
| inNodesSolved | number of nodes solved |
| inNodesLeft | number of remaining nodes |
| inBestDualBoundValue | best dual bound value in that of remaining nodes |
| inGlobalBestPrimalBoundValue | global best primal bound value |
| inDetTime | deterministic time, -1: should be non-deterministic |
| inAverageDualBoundGain | average dual bound gain received |
Definition at line 87 of file bbParaSolverState.h.
|
virtual |
destractor
Definition at line 111 of file bbParaSolverState.h.
| double getAverageDualBoundGain | ( | ) |
getter of average dual bound gain received
Definition at line 211 of file bbParaSolverState.h.
References BbParaSolverState::averageDualBoundGain.
Referenced by BbParaLoadCoordinator::processTagSolverState().
| double getDeterministicTime | ( | ) |
getter of deterministic time
Definition at line 201 of file bbParaSolverState.h.
References ParaSolverState::detTime.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| double getGlobalBestPrimalBoundValue | ( | ) |
get global best primal bound value that the notification Solver has
Definition at line 170 of file bbParaSolverState.h.
References BbParaSolverState::globalBestPrimalBoundValue.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| int getGlobalSubtreeId | ( | ) |
getter of global subtree id
Definition at line 150 of file bbParaSolverState.h.
References ParaSolverState::globalSubtreeIdInLc.
| int getLcId | ( | ) |
getter of LoadCoordintor id
Definition at line 140 of file bbParaSolverState.h.
References ParaSolverState::lcId.
| int getNNodesLeft | ( | ) |
getter of number of nodes left by the notification Solver
Definition at line 191 of file bbParaSolverState.h.
References BbParaSolverState::nNodesLeft.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| long long getNNodesSolved | ( | ) |
getter of number of nodes solved by the notification Solver
Definition at line 180 of file bbParaSolverState.h.
References BbParaSolverState::nNodesSolved.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| unsigned int getNotificaionId | ( | ) |
getter of notification id
Definition at line 130 of file bbParaSolverState.h.
References ParaSolverState::notificationId.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| double getSolverLocalBestDualBoundValue | ( | ) |
gettter of best dual bound value
Definition at line 160 of file bbParaSolverState.h.
References BbParaSolverState::bestDualBoundValue.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
| bool isRacingStage | ( | ) |
getter of isRacingStage
Definition at line 120 of file bbParaSolverState.h.
References ParaSolverState::racingStage.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
|
virtual |
stringfy BbParaSolverState
Implements ParaSolverState.
Definition at line 221 of file bbParaSolverState.h.
References BbParaSolverState::bestDualBoundValue, ParaSolverState::globalSubtreeIdInLc, ParaSolverState::lcId, BbParaSolverState::nNodesLeft, BbParaSolverState::nNodesSolved, ParaSolverState::notificationId, and ParaSolverState::racingStage.
|
protected |
average dual bound gain received
Definition at line 65 of file bbParaSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), BbParaSolverState::getAverageDualBoundGain(), and BbParaSolverStateTh::receive().
|
protected |
best dual bound value in that of remaining nodes
Definition at line 62 of file bbParaSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), BbParaSolverState::getSolverLocalBestDualBoundValue(), BbParaSolverStateTh::receive(), BbParaSolverStateMpi::send(), BbParaSolverStateTh::send(), and BbParaSolverState::toString().
|
protected |
global best primal bound value
Definition at line 63 of file bbParaSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), BbParaSolverState::getGlobalBestPrimalBoundValue(), and BbParaSolverStateTh::receive().
|
protected |
number of remaining nodes
Definition at line 61 of file bbParaSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), BbParaSolverState::getNNodesLeft(), BbParaSolverStateTh::receive(), BbParaSolverStateMpi::send(), BbParaSolverStateTh::send(), and BbParaSolverState::toString().
|
protected |
number of nodes solved
Definition at line 60 of file bbParaSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), BbParaSolverState::getNNodesSolved(), BbParaSolverStateTh::receive(), and BbParaSolverState::toString().