Scippy

UG

Ubiquity Generator framework

ScipParaInitialStatMpi Class Reference

#include <scipParaInitialStatMpi.h>

+ Inheritance diagram for ScipParaInitialStatMpi:

Public Member Functions

 ScipParaInitialStatMpi ()
 
 ScipParaInitialStatMpi (int inMaxDepth, int inMaxTotalDepth, int inNVarBranchStatsDown, int inNVarBranchStatsUp, int *inIdxLBranchStatsVarsDown, int *inNVarBranchingDown, int *inIdxLBranchStatsVarsUp, int *inNVarBranchingUp, SCIP_Real *inDownpscost, SCIP_Real *inDownvsids, SCIP_Real *inDownconflen, SCIP_Real *inDowninfer, SCIP_Real *inDowncutoff, SCIP_Real *inUppscost, SCIP_Real *inUpvsids, SCIP_Real *inUpconflen, SCIP_Real *inUpinfer, SCIP_Real *inUpcutoff)
 
 ScipParaInitialStatMpi (SCIP *scip)
 
virtual ~ScipParaInitialStatMpi ()
 
void send (UG::ParaComm *comm, int dest)
 
void receive (UG::ParaComm *comm, int source)
 
- Public Member Functions inherited from ScipParaInitialStat
 ScipParaInitialStat ()
 
 ScipParaInitialStat (SCIP *scip)
 
virtual ~ScipParaInitialStat ()
 
ParaInitialStatclone (UG::ParaComm *comm)
 
void accumulateOn (SCIP *scip)
 
int getMaxDepth ()
 
const std::string toString ()
 
- Public Member Functions inherited from ParaInitialStat
 ParaInitialStat ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~ParaInitialStat ()
 destructor More...
 

Private Member Functions

MPI_Datatype createDatatype1 ()
 
MPI_Datatype createDatatype2 (bool memAllocNecessary)
 

Additional Inherited Members

- Protected Attributes inherited from ScipParaInitialStat
int maxDepth
 
int maxTotalDepth
 
int nVarBranchStatsDown
 
int nVarBranchStatsUp
 
int * idxLBranchStatsVarsDown
 
int * nVarBranchingDown
 
int * idxLBranchStatsVarsUp
 
int * nVarBranchingUp
 
SCIP_Real * downpscost
 
SCIP_Real * downvsids
 
SCIP_Real * downconflen
 
SCIP_Real * downinfer
 
SCIP_Real * downcutoff
 
SCIP_Real * uppscost
 
SCIP_Real * upvsids
 
SCIP_Real * upconflen
 
SCIP_Real * upinfer
 
SCIP_Real * upcutoff
 

Detailed Description

The initial statistic collecting data class: this is base class

Definition at line 50 of file scipParaInitialStatMpi.h.

Constructor & Destructor Documentation

◆ ScipParaInitialStatMpi() [1/3]

default constructor

Definition at line 59 of file scipParaInitialStatMpi.h.

◆ ScipParaInitialStatMpi() [2/3]

ScipParaInitialStatMpi ( int  inMaxDepth,
int  inMaxTotalDepth,
int  inNVarBranchStatsDown,
int  inNVarBranchStatsUp,
int *  inIdxLBranchStatsVarsDown,
int *  inNVarBranchingDown,
int *  inIdxLBranchStatsVarsUp,
int *  inNVarBranchingUp,
SCIP_Real *  inDownpscost,
SCIP_Real *  inDownvsids,
SCIP_Real *  inDownconflen,
SCIP_Real *  inDowninfer,
SCIP_Real *  inDowncutoff,
SCIP_Real *  inUppscost,
SCIP_Real *  inUpvsids,
SCIP_Real *  inUpconflen,
SCIP_Real *  inUpinfer,
SCIP_Real *  inUpcutoff 
)

◆ ScipParaInitialStatMpi() [3/3]

ScipParaInitialStatMpi ( SCIP *  scip)

constructor to create this object

Definition at line 107 of file scipParaInitialStatMpi.h.

◆ ~ScipParaInitialStatMpi()

virtual ~ScipParaInitialStatMpi ( )
virtual

destractor

Definition at line 114 of file scipParaInitialStatMpi.h.

References comm, ScipParaInitialStatMpi::receive(), and ScipParaInitialStatMpi::send().

Member Function Documentation

◆ createDatatype1()

MPI_Datatype createDatatype1 ( )
private

create ScipParaInitialStat datatype1

create ScipDiffSubproblemPreDatatype

Definition at line 44 of file scipParaInitialStatMpi.cpp.

References MPI_CALL.

◆ createDatatype2()

MPI_Datatype createDatatype2 ( bool  memAllocNecessary)
private

create ScipParaInitialStat datatype2

create ScipDiffSubproblemDatatype

Definition at line 95 of file scipParaInitialStatMpi.cpp.

References MPI_CALL.

◆ receive()

void receive ( UG::ParaComm comm,
int  source 
)
virtual

user should implement receive method

receive solution data from the source rank

Implements ParaInitialStat.

Definition at line 316 of file scipParaInitialStatMpi.cpp.

References DEF_PARA_COMM, MPI_CALL, PARA_COMM_CALL, and ParaSCIP::TagInitialStat.

Referenced by ScipParaInitialStatMpi::~ScipParaInitialStatMpi().

◆ send()

void send ( UG::ParaComm comm,
int  destination 
)
virtual

user should implement send method

send solution data to the rank

Implements ParaInitialStat.

Definition at line 271 of file scipParaInitialStatMpi.cpp.

References DEF_PARA_COMM, MPI_CALL, PARA_COMM_CALL, and ParaSCIP::TagInitialStat.

Referenced by ScipParaInitialStatMpi::~ScipParaInitialStatMpi().