| 1 |
#ifndef BALL_STRUCTURE_BONDORDERS_BRANCHANDBOUNDBONDORDERSTRATEGY_H |
| 2 |
#define BALL_STRUCTURE_BONDORDERS_BRANCHANDBOUNDBONDORDERSTRATEGY_H |
| 3 |
|
| 4 |
#ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENTSTRATEGY_H |
| 5 |
# include <BALL/STRUCTURE/BONDORDERS/bondOrderAssignmentStrategy.h> |
| 6 |
#endif |
| 7 |
|
| 8 |
#ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENT_H |
| 9 |
# include <BALL/STRUCTURE/BONDORDERS/bondOrderAssignment.h> |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef BALL_STRUCTURE_BONDORDERS_KGREEDYBONDORDERSTRATEGY_H |
| 13 |
# include <BALL/STRUCTURE/BONDORDERS/KGreedyBondOrderStrategy.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
namespace BALL |
| 17 |
{ |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
class BranchAndBoundBondOrderStrategy |
| 29 |
: public KGreedyBondOrderStrategy |
| 30 |
{ |
| 31 |
public: |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
struct BALL_EXPORT Option |
| 37 |
{ |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
static const char* BRANCH_AND_BOUND_CUTOFF; |
| 45 |
}; |
| 46 |
|
| 47 |
struct BALL_EXPORT Default |
| 48 |
{ |
| 49 |
static const float BRANCH_AND_BOUND_CUTOFF; |
| 50 |
}; |
| 51 |
|
| 52 |
|
| 53 |
BranchAndBoundBondOrderStrategy(AssignBondOrderProcessor* parent); |
| 54 |
virtual ~BranchAndBoundBondOrderStrategy(); |
| 55 |
|
| 56 |
virtual void clear(); |
| 57 |
virtual void init(); |
| 58 |
|
| 59 |
virtual bool readOptions(const Options& options); |
| 60 |
virtual void setDefaultOptions(); |
| 61 |
|
| 62 |
virtual boost::shared_ptr<BondOrderAssignment> computeNextSolution(); |
| 63 |
|
| 64 |
protected: |
| 65 |
}; |
| 66 |
} |
| 67 |
|
| 68 |
#endif |