|
Biorithm
1.1
|
A class that abstracts the functionality of a state in simulated annealing. More...
#include <anneal.h>
Public Member Functions | |
| MyAbstractAnnealState () | |
| The default constructor. | |
| MyAbstractAnnealState & | operator= (const MyAbstractAnnealState &rhs) |
| virtual void | computeRandomNeighbour (MyAbstractAnnealState &neighbour)=0 |
| virtual MyNT | computeScore () const =0 |
| Compute the score of the state. | |
| virtual void | print (ostream &ostr) const =0 |
| Print information about the state. | |
| virtual void | undo ()=0 |
| Undo the previous change made to the state. | |
A class that abstracts the functionality of a state in simulated annealing.
Any instance of the MySimulatedAnnealer template class will be templated by a sub-class of MyAbstractAnnealState. Any sub-class of this class should implement the methods
| virtual void MyAbstractAnnealState::computeRandomNeighbour | ( | MyAbstractAnnealState & | neighbour | ) | [pure virtual] |
Compute a random neighbour of the state.
Implemented in MyDensestSubgraphConnectedBruteForceAnnealState, and MyDensestSubgraphAnnealState.
| MyAbstractAnnealState& MyAbstractAnnealState::operator= | ( | const MyAbstractAnnealState & | rhs | ) |
Don't define operator= to prevent assignment of this abstract base class.
1.7.6.1