Debian Codegraph @

include/BALL/STRUCTURE/BONDORDERS/branchAndBoundBondOrderStrategy.h

raw symbols SCIP
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 /** Branch-and-bound algorithm for bond order assignment.
19 *
20 * This class implements a (possibly sub-optimal) branch and bound approach
21 * for the bond order assignment problem that can be used by the
22 * \link AssignBondOrderProcessor AssignBondOrderProcessor \endlink.
23 * The implementation of this strategy
24 * is very similar to the KGreedy approach and much of its functionality
25 * can be reused. We thus derive from \link KGreedyBondOrderStrategy
26 * KGreedyBondOrderStrategy \endlink.
27 */
28 class BranchAndBoundBondOrderStrategy
29 : public KGreedyBondOrderStrategy
30 {
31 public:
32 /** @name Constant Definitions
33 */
34 //@{
35 /// Option names
36 struct BALL_EXPORT Option
37 {
38 /** the percentage cutoff for keeping PQ-Entries in the branch and bound algorithm.
39 * Default is 1.2.
40 * @see Option::AlgorithmBRANCH_AND_BOUND;
41 * \par
42 * <b>NOTE:</b> This option is still experimental.
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 // BALL_STRUCTURE_BONDORDERS_KGREEDYBONDORDERSTRATEGY_H