37 #ifndef __BB_PARA_SOLVER_STATE_H__ 38 #define __BB_PARA_SOLVER_STATE_H__ 77 bestDualBoundValue(0.0),
78 globalBestPrimalBoundValue(DBL_MAX),
80 averageDualBoundGain(0.0)
89 unsigned int inNotificationId,
91 int inGlobalSubtreeId,
92 long long inNodesSolved,
94 double inBestDualBoundValue,
95 double inGlobalBestPrimalBoundValue,
97 double inAverageDualBoundGain
99 :
ParaSolverState(inRacingStage, inNotificationId, inLcId, inGlobalSubtreeId, inDetTime),
100 nNodesSolved(inNodesSolved),
101 nNodesLeft(inNodesLeft),
102 bestDualBoundValue(inBestDualBoundValue),
103 globalBestPrimalBoundValue(inGlobalBestPrimalBoundValue),
104 averageDualBoundGain(inAverageDualBoundGain)
224 std::ostringstream s;
227 <<
" Best dual bound value = " << bestDualBoundValue
228 <<
" number of nodes solved = " << nNodesSolved
237 #endif // __BB_PARA_SOLVER_STATE_H__ class ParaSolverState (ParaSolver state object for notification message)
This class has solver state to be transferred.
double getSolverLocalBestDualBoundValue()
gettter of best dual bound value
BbParaSolverState()
default constructor
int getGlobalSubtreeId()
getter of global subtree id
double getAverageDualBoundGain()
getter of average dual bound gain received
int globalSubtreeIdInLc
global subtree id of current ParaTask
int getNNodesLeft()
getter of number of nodes left by the notification Solver
virtual ~BbParaSolverState()
destractor
unsigned int getNotificaionId()
getter of notification id
Base class of communicator for UG Framework.
double detTime
deterministic time, -1: should be non-deterministic
double averageDualBoundGain
average dual bound gain received
int nNodesLeft
number of remaining nodes
bool isRacingStage()
getter of isRacingStage
int getLcId()
getter of LoadCoordintor id
int lcId
lc id of current ParaTask
double globalBestPrimalBoundValue
global best primal bound value
double getDeterministicTime()
getter of deterministic time
long long getNNodesSolved()
getter of number of nodes solved by the notification Solver
double getGlobalBestPrimalBoundValue()
get global best primal bound value that the notification Solver has
std::string toString()
stringfy BbParaSolverState
long long nNodesSolved
number of nodes solved
BbParaSolverState(int inRacingStage, unsigned int inNotificationId, int inLcId, int inGlobalSubtreeId, long long inNodesSolved, int inNodesLeft, double inBestDualBoundValue, double inGlobalBestPrimalBoundValue, double inDetTime, double inAverageDualBoundGain)
constructor
class BbParaSolverState (ParaSolver state object for notification message)
int racingStage
if this value is 1, solver is in racing stage
unsigned int notificationId
id for this notification
double bestDualBoundValue
best dual bound value in that of remaining nodes