MineLink
 All Data Structures Functions Variables Pages
pseudoflownp.h
1 #ifndef __PSEUDOFLOWNP_H__
2 #define __PSEUDOFLOWNP_H__
3 
4 #include "../../problems/nestedpits/nestedpit.h"
5 
6 
7 using namespace std;
8 namespace delphos{
16 private:
17  bool _solved;
18  /*exprtk::expression<double> _vexpr;
19  vector<unsigned int> _vars_column_index;
20  vector<double> _values;
21  double _rfvar;
22 
23  bool _coord_use;
24  double _xvar;
25  double _yvar;
26  double _zvar;
27  */
28  vector<string> _formula_by_rf;
29 
30  void ReplaceStringInPlace(std::string& subject, const std::string& search, const std::string& replace);
31  NestedPits _nestedpits;
32  bool _register_val;
33 
34 public:
42  PseudoFlowNestedPitSolver(NestedPitInstance& np,const bool& register_val=true);
46  virtual ~PseudoFlowNestedPitSolver();
47 
57  virtual bool Run();
58 
59 
65  virtual const bool IsSolved() const;
66 
67  virtual delphos::NestedPits* GetNestedPits();
68 
69 };
70 }
71 
72 #endif
73 
Defines a case for the nested pits problem.
Definition: nestedpit.h:16
Defines nested pits.
Definition: nestedpit.h:143
A dummy class that specifies the methods of an algorithm that can solve a nested pit instance...
Definition: nestedpit.h:233
An implementation of a nested pit solver based on the Pseudoflow algorithm.
Definition: pseudoflownp.h:15