46 return(
new ScipParaSolutionTh(objectiveFunctionValue, nVars, indicesAmongSolvers, values));
51 ScipParaSolutionTh::createDatatype(
64 if( commTh->getRank() == root )
66 for(
int i = 0; i < commTh->getSize(); i++ )
83 objectiveFunctionValue = received->objectiveFunctionValue;
84 nVars = received->nVars;
85 indicesAmongSolvers =
new int[nVars];
86 values =
new SCIP_Real[nVars];
87 for(
int i = 0; i < nVars; i++ )
89 indicesAmongSolvers[i] = received->indicesAmongSolvers[i];
90 values[i] = received->values[i];
117 objectiveFunctionValue = received->objectiveFunctionValue;
118 nVars = received->nVars;
119 indicesAmongSolvers =
new int[nVars];
120 values =
new SCIP_Real[nVars];
121 for(
int i = 0; i < nVars; i++ )
123 indicesAmongSolvers[i] = received->indicesAmongSolvers[i];
124 values[i] = received->values[i];
ScipParaSolution extension for threads communication.
static ScipParaCommTh * comm
#define PARA_COMM_CALL(paracommcall)
static const int TagSolution
#define DEF_PARA_COMM(para_comm, comm)
static const int ParaSolutionType
Base class of communicator object.