BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ILPBondOrderStrategy.h
Go to the documentation of this file.
1 #ifndef BALL_STRUCTURE_BONDORDERS_ILPBONDORDERSTRATEGY_H
2 #define BALL_STRUCTURE_BONDORDERS_ILPBONDORDERSTRATEGY_H
3 
4 #ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENTSTRATEGY_H
6 #endif
7 
8 #ifndef BALL_STRUCTURE_BONDORDERS_BONDORDERASSIGNMENT_H
10 #endif
11 // forward declaration for lp_solve
12 struct _lprec;
13 typedef struct _lprec lprec;
14 
15 namespace BALL
16 {
25  {
26  public:
28  virtual ~ILPBondOrderStrategy();
29 
30  virtual void clear();
31  virtual void init();
32 
33  virtual bool readOptions(const Options& options);
34  virtual void setDefaultOptions();
35 
36  virtual boost::shared_ptr<BondOrderAssignment> computeNextSolution();
37 
38  protected:
39  bool valid_;
40 
41  // Vector for mapping from variable indices onto free bonds in the
42  // order used by the ILP
43  std::vector<Bond*> index_to_free_bond_;
44 
45  // number of bond variables in the ILP
47 
48  // Constant penalty (fixed bonds)
50 
51  // flag indicating whether constraints need to be added
53 
54  // the ilp
56  };
57 }
58 #endif // BALL_STRUCTURE_BONDORDERS_ILPBONDORDERSTRATEGY_H
Assignment of bond orders from topology information.
struct _lprec lprec
virtual void setDefaultOptions()
ILPBondOrderStrategy(AssignBondOrderProcessor *parent)
std::vector< Bond * > index_to_free_bond_
virtual boost::shared_ptr< BondOrderAssignment > computeNextSolution()
virtual bool readOptions(const Options &options)
Base class for bond order assignment algorithms.