class for solution More...
#include <paraSolution.h>
Public Member Functions | |
| ParaSolution () | |
| DO NOT HAVE DATA MEMBER!! More... | |
| virtual | ~ParaSolution () |
| destructor More... | |
| virtual double | getObjectiveFunctionValue ()=0 |
| get objective function value More... | |
| virtual ParaSolution * | clone (ParaComm *comm)=0 |
| create clone of this object More... | |
| virtual void | bcast (ParaComm *comm, int root)=0 |
| broadcast solution data More... | |
| virtual void | send (ParaComm *comm, int destination)=0 |
| send solution data More... | |
| virtual void | receive (ParaComm *comm, int source)=0 |
| receive solution data More... | |
| virtual void | write (gzstream::ogzstream &out)=0 |
| function to write ParaSolution object to checkpoint file More... | |
| virtual bool | read (ParaComm *comm, gzstream::igzstream &in)=0 |
| function to read ParaSolution object from checkpoint file More... | |
| virtual const std::string | toString () |
| stringfy ParaSolution object More... | |
class for solution
This class should NOT have any data member.
Definition at line 53 of file paraSolution.h.
| ParaSolution | ( | ) |
|
virtual |
destructor
Definition at line 73 of file paraSolution.h.
|
pure virtual |
broadcast solution data
| comm | communicator used |
| root | root rank for broadcast |
Implemented in ScipParaSolutionMpi, and ScipParaSolutionTh.
Referenced by ScipParaSolver::ScipParaSolver(), and ScipParaInitiator::sendSolverInitializationMessage().
|
pure virtual |
create clone of this object
Implemented in ScipParaSolutionMpi, and ScipParaSolutionTh.
Referenced by ScipParaInitiator::readSolutionFromCheckpointFile(), and BbParaLoadCoordinator::updateSolution().
|
pure virtual |
get objective function value
Implemented in ScipParaSolution, and BbParaSolution.
Referenced by BbParaSolver::processTagSolution(), BbParaSolver::saveIfImprovedSolutionWasFound(), BbParaSolver::sendIfImprovedSolutionWasFound(), BbParaSolver::sendLocalSolution(), BbParaSolver::sendSolverState(), and BbParaSolver::updateGlobalBestIncumbentSolution().
|
pure virtual |
function to read ParaSolution object from checkpoint file
| comm | communicator used |
| in | gzstream for input |
Implemented in ScipParaSolution.
|
pure virtual |
receive solution data
| comm | communicator used |
| source | source rank |
Implemented in ScipParaSolutionMpi, and ScipParaSolutionTh.
Referenced by BbParaLoadCoordinator::processTagSolution(), and BbParaSolver::processTagSolution().
|
pure virtual |
send solution data
| comm | communicator used |
| destination | destination rank |
Implemented in ScipParaSolutionMpi, and ScipParaSolutionTh.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), BbParaLoadCoordinator::processTagSolverState(), BbParaSolver::sendIfImprovedSolutionWasFound(), BbParaSolver::sendLocalSolution(), and BbParaLoadCoordinator::warmStart().
|
virtual |
stringfy ParaSolution object
Reimplemented in ScipParaSolution.
Definition at line 140 of file paraSolution.h.
|
pure virtual |
function to write ParaSolution object to checkpoint file
| out | gzstream for output |
Implemented in ScipParaSolution.