#include <scipDiffParamSetTh.h>
Public Member Functions | |
ScipDiffParamSetTh () | |
ScipDiffParamSetTh (SCIP *scip) | |
~ScipDiffParamSetTh () | |
ScipDiffParamSetTh * | clone () |
int | bcast (UG::ParaComm *comm, int root) |
int | send (UG::ParaComm *comm, int destination) |
int | receive (UG::ParaComm *comm, int source) |
Public Member Functions inherited from ScipDiffParamSet | |
ScipDiffParamSet () | |
ScipDiffParamSet (SCIP *scip) | |
virtual | ~ScipDiffParamSet () |
void | setParametersInScip (SCIP *scip) |
int | nDiffParams () |
bool | doesContainRealParam (char *string) |
std::string | toString () |
virtual int | bcast (UG::ParaComm *comm, int root)=0 |
virtual int | send (UG::ParaComm *comm, int destination)=0 |
virtual int | receive (UG::ParaComm *comm, int source)=0 |
void | write (gzstream::ogzstream &out) |
bool | read (UG::ParaComm *comm, gzstream::igzstream &in) |
Private Member Functions | |
ScipDiffParamSetTh * | createDatatype () |
void | setValues (ScipDiffParamSetTh *from) |
Additional Inherited Members | |
Protected Member Functions inherited from ScipDiffParamSet | |
void | allocateMemoty () |
Protected Attributes inherited from ScipDiffParamSet | |
int | numBoolParams |
size_t | boolParamNamesSize |
char * | boolParamNames |
unsigned int * | boolParamValues |
int | numIntParams |
size_t | intParamNamesSize |
char * | intParamNames |
int * | intParamValues |
int | numLongintParams |
size_t | longintParamNamesSize |
char * | longintParamNames |
long long * | longintParamValues |
int | numRealParams |
size_t | realParamNamesSize |
char * | realParamNames |
double * | realParamValues |
int | numCharParams |
size_t | charParamNamesSize |
char * | charParamNames |
char * | charParamValues |
int | numStringParams |
size_t | stringParamNamesSize |
char * | stringParamNames |
size_t | stringParamValuesSize |
char * | stringParamValues |
ScipDiffParamSet class
Definition at line 47 of file scipDiffParamSetTh.h.
constructor
Definition at line 57 of file scipDiffParamSetTh.h.
Referenced by ScipDiffParamSetTh::clone().
ScipDiffParamSetTh | ( | SCIP * | scip | ) |
constructor with scip
Definition at line 63 of file scipDiffParamSetTh.h.
~ScipDiffParamSetTh | ( | ) |
destructor
Definition at line 71 of file scipDiffParamSetTh.h.
|
virtual |
broadcast scipDiffParamSet
send solution data to the rank
Implements ScipDiffParamSet.
Definition at line 250 of file scipDiffParamSetTh.cpp.
References comm, ScipDiffParamSetTh::createDatatype(), DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolverDiffParamType, ScipDiffParamSetTh::setValues(), and UG::TagSolverDiffParamSet.
ScipDiffParamSetTh * clone | ( | ) |
create clone
copy boolean parameter values
copy int parameter values
copy longint parameter values
copy real parameter values
copy char parameter values
copy string parameter values
Definition at line 55 of file scipDiffParamSetTh.cpp.
References ScipDiffParamSet::allocateMemoty(), ScipDiffParamSet::boolParamNames, ScipDiffParamSet::boolParamNamesSize, ScipDiffParamSet::boolParamValues, ScipDiffParamSet::charParamNames, ScipDiffParamSet::charParamNamesSize, ScipDiffParamSet::charParamValues, ScipDiffParamSet::intParamNames, ScipDiffParamSet::intParamNamesSize, ScipDiffParamSet::intParamValues, ScipDiffParamSet::longintParamNames, ScipDiffParamSet::longintParamNamesSize, ScipDiffParamSet::longintParamValues, ScipDiffParamSet::numBoolParams, ScipDiffParamSet::numCharParams, ScipDiffParamSet::numIntParams, ScipDiffParamSet::numLongintParams, ScipDiffParamSet::numRealParams, ScipDiffParamSet::numStringParams, ScipDiffParamSet::realParamNames, ScipDiffParamSet::realParamNamesSize, ScipDiffParamSet::realParamValues, ScipDiffParamSetTh::ScipDiffParamSetTh(), ScipDiffParamSet::stringParamNames, ScipDiffParamSet::stringParamNamesSize, ScipDiffParamSet::stringParamValues, and ScipDiffParamSet::stringParamValuesSize.
Referenced by ScipDiffParamSetTh::createDatatype(), ScipParaRacingRampUpParamSetTh::createDatatype(), and ScipParaRacingRampUpParamSetTh::receive().
|
private |
create datatype
create scipDiffParamSetPreType
Definition at line 47 of file scipDiffParamSetTh.cpp.
References ScipDiffParamSetTh::clone().
Referenced by ScipDiffParamSetTh::bcast(), and ScipDiffParamSetTh::send().
|
virtual |
receive scipDiffParamSet from the source rank
receive solution data from the source rank
Implements ScipDiffParamSet.
Definition at line 302 of file scipDiffParamSetTh.cpp.
References comm, DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolverDiffParamType, ScipDiffParamSetTh::setValues(), and UG::TagSolverDiffParamSet.
|
virtual |
send scipDiffParamSet to the rank
send solution data to the rank
Implements ScipDiffParamSet.
Definition at line 286 of file scipDiffParamSetTh.cpp.
References comm, ScipDiffParamSetTh::createDatatype(), DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolverDiffParamType, and UG::TagSolverDiffParamSet.
|
private |
copy boolean parameter values
copy int parameter values
copy longint parameter values
copy real parameter values
copy char parameter values
copy string parameter values
Definition at line 153 of file scipDiffParamSetTh.cpp.
References ScipDiffParamSet::allocateMemoty(), ScipDiffParamSet::boolParamNames, ScipDiffParamSet::boolParamNamesSize, ScipDiffParamSet::boolParamValues, ScipDiffParamSet::charParamNames, ScipDiffParamSet::charParamNamesSize, ScipDiffParamSet::charParamValues, ScipDiffParamSet::intParamNames, ScipDiffParamSet::intParamNamesSize, ScipDiffParamSet::intParamValues, ScipDiffParamSet::longintParamNames, ScipDiffParamSet::longintParamNamesSize, ScipDiffParamSet::longintParamValues, ScipDiffParamSet::numBoolParams, ScipDiffParamSet::numCharParams, ScipDiffParamSet::numIntParams, ScipDiffParamSet::numLongintParams, ScipDiffParamSet::numRealParams, ScipDiffParamSet::numStringParams, ScipDiffParamSet::realParamNames, ScipDiffParamSet::realParamNamesSize, ScipDiffParamSet::realParamValues, ScipDiffParamSet::stringParamNames, ScipDiffParamSet::stringParamNamesSize, ScipDiffParamSet::stringParamValues, and ScipDiffParamSet::stringParamValuesSize.
Referenced by ScipDiffParamSetTh::bcast(), and ScipDiffParamSetTh::receive().