#include <scipParaSolutionTh.h>
Public Member Functions | |
ScipParaSolutionTh () | |
ScipParaSolutionTh (ScipParaSolver *solver, SCIP_Real objval, int inNvars, SCIP_VAR **vars, SCIP_Real *vals) | |
ScipParaSolutionTh (double inObjectiveFunctionValue, int inNVars, int *inIndicesAmongSolvers, SCIP_Real *inValues) | |
~ScipParaSolutionTh () | |
ScipParaSolutionTh * | clone (UG::ParaComm *comm) |
void | bcast (UG::ParaComm *comm, int root) |
void | send (UG::ParaComm *comm, int destination) |
void | receive (UG::ParaComm *comm, int source) |
Public Member Functions inherited from ScipParaSolution | |
ScipParaSolution () | |
ScipParaSolution (ScipParaSolver *solver, SCIP_Real objval, int inNvars, SCIP_VAR **vars, SCIP_Real *vals) | |
ScipParaSolution (double inObjectiveFunctionValue, int inNVars, int *inIndicesAmongSolvers, SCIP_Real *inValues) | |
virtual | ~ScipParaSolution () |
double | getObjectiveFunctionValue () |
void | setObjectiveFuntionValue (SCIP_Real val) |
int | getNVars () |
int | indexAmongSolvers (int index) |
SCIP_Real * | getValues () |
void | setValue (int i, SCIP_Real val) |
const std::string | toString () |
Public Member Functions inherited from BbParaSolution | |
BbParaSolution () | |
DO NOT HAVE DATA MEMBER!! More... | |
virtual | ~BbParaSolution () |
destructor More... | |
virtual double | getCutOffValue () |
get cutoff value More... | |
Public Member Functions inherited from ParaSolution | |
ParaSolution () | |
DO NOT HAVE DATA MEMBER!! More... | |
virtual | ~ParaSolution () |
destructor More... | |
Private Member Functions | |
ScipParaSolutionTh * | createDatatype (UG::ParaComm *comm) |
Additional Inherited Members | |
Protected Attributes inherited from ScipParaSolution | |
double | objectiveFunctionValue |
int | nVars |
int * | indicesAmongSolvers |
SCIP_Real * | values |
ScipSolution class
Definition at line 50 of file scipParaSolutionTh.h.
default constructor
Definition at line 58 of file scipParaSolutionTh.h.
ScipParaSolutionTh | ( | ScipParaSolver * | solver, |
SCIP_Real | objval, | ||
int | inNvars, | ||
SCIP_VAR ** | vars, | ||
SCIP_Real * | vals | ||
) |
constructor
Definition at line 64 of file scipParaSolutionTh.h.
ScipParaSolutionTh | ( | double | inObjectiveFunctionValue, |
int | inNVars, | ||
int * | inIndicesAmongSolvers, | ||
SCIP_Real * | inValues | ||
) |
constructor
inNVars | number of variables |
inIndicesAmongSolvers | array of variable indices ( probindex ) |
inValues | array of bounds which the branchings |
Definition at line 74 of file scipParaSolutionTh.h.
~ScipParaSolutionTh | ( | ) |
destructor
Definition at line 82 of file scipParaSolutionTh.h.
References ScipParaSolutionTh::bcast(), ScipParaSolutionTh::clone(), ScipParaSolutionTh::receive(), and ScipParaSolutionTh::send().
|
virtual |
broadcast solution data to from the root rank
send solution data to the rank
Implements ParaSolution.
Definition at line 60 of file scipParaSolutionTh.cpp.
References DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolutionType, and UG::TagSolution.
Referenced by ScipParaSolutionTh::~ScipParaSolutionTh().
|
virtual |
create clone of this object
Implements ParaSolution.
Definition at line 44 of file scipParaSolutionTh.cpp.
Referenced by ScipParaSolutionTh::~ScipParaSolutionTh().
|
private |
create scipSolutionDatatype
create ScipDiffSubproblemPreDatatype
Definition at line 51 of file scipParaSolutionTh.cpp.
|
virtual |
receive solution data from the source rank
Implements ParaSolution.
Definition at line 108 of file scipParaSolutionTh.cpp.
References DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolutionType, and UG::TagSolution.
Referenced by ScipParaSolutionTh::~ScipParaSolutionTh().
|
virtual |
send solution data to the rank
Implements ParaSolution.
Definition at line 98 of file scipParaSolutionTh.cpp.
References DEF_PARA_COMM, PARA_COMM_CALL, UG::ParaSolutionType, and UG::TagSolution.
Referenced by ScipParaSolutionTh::~ScipParaSolutionTh().