Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
failed_paths.hpp
Go to the documentation of this file.
1 
2 #include <vector>
3 #include <map>
4 #include <iostream>
5 #include <string>
6 #include <iterator>
7 #include <sstream>
8 #include <fstream>
9 #include <stdio.h>
10 #include <iomanip>
11 #include <math.h>
12 
13 
14 
15 #ifndef __FAILED_PATHS_H__
16 #define __FAILED_PATHS_H__
17 
18 #include "random.hpp"
19 #include "mtrand.hpp"
20 #include "step1_funcs.hpp"
21 #include "step2_funcs.hpp"
22 #include "para_aux_funcs.hpp"
23 #include "xml_preferences.hpp"
24 #include "runinfo.hpp"
25 #include "menu_cases.hpp"
26 #include "step2readandwrite.hpp"
27 #include "point.hpp"
28 #include "datagatherer.hpp"
29 
30 
34 int failedpaths_case(runinfo & paramotopy_info,
35  ProgSettings & paramotopy_settings,
36  int & iteration);
37 
38 
39 
40 
45 class failinfo {
46 public:
47 
48  //VARIABLES
52  std::vector< point > master_fails;
54  std::map< int, std::vector < point > > initial_fails;
56  std::map< int, std::vector < point > > terminal_fails;
57 
59  std::vector< std::string > foldervector;
61 
62  //FUNCTIONS
67  void MainMenu(ProgSettings & paramotopy_settings, runinfo & paramotopy_info);
68 
69 
70 private:
71 
75  void StartOver(runinfo & paramotopy_info);
79  void RecoverProgress(runinfo & paramotopy_info);
84  void PerformAnalysis(ProgSettings & paramotopy_settings, runinfo & paramotopy_info);
87  void set_location_fail(runinfo & paramotopy_info);
91  void report_restored_data();
97  int find_failed_paths(runinfo paramotopy_info, int temporal_flag, int iteration);
102  void get_folders_for_fail(boost::filesystem::path dir);
103 
109  std::string new_step_one(ProgSettings & paramotopy_settings,runinfo & paramotopy_info);
114  void make_master_from_recovered(std::map< int, point > successful_resolves);
115 
121  void write_failed_paths(runinfo paramotopy_info, int iteration);
122  void find_successful_resolves(runinfo & paramotopy_info);
123  void write_successful_resolves(runinfo paramotopy_info);
130  void merge_successful_resolves(std::vector< point > current_successful_resolves, std::vector< int > relative_indices, std::vector< int > final_indices);
131 
139  void copy_step_one(boost::filesystem::path from_dir, boost::filesystem::path to_dir, int iteration, std::string startfilename);
144  void report_failed_paths(runinfo paramotopy_info);
145 
146 
147 };
148 
149 
150 
151 // scans the data files for the failed paths
152 
153 
154 
155 
156 #endif
157 
158 
std::map< int, std::vector< point > > initial_fails
void report_restored_data()
void write_successful_resolves(runinfo paramotopy_info)
int num_points_inspected
int find_failed_paths(runinfo paramotopy_info, int temporal_flag, int iteration)
void merge_successful_resolves(std::vector< point > current_successful_resolves, std::vector< int > relative_indices, std::vector< int > final_indices)
The class for performing failed path analysis.
void report_failed_paths(runinfo paramotopy_info)
void RecoverProgress(runinfo &paramotopy_info)
this function does three things: recovers the iteration number, recovers the list of points which hav...
void get_folders_for_fail(boost::filesystem::path dir)
void StartOver(runinfo &paramotopy_info)
void copy_step_one(boost::filesystem::path from_dir, boost::filesystem::path to_dir, int iteration, std::string startfilename)
void find_successful_resolves(runinfo &paramotopy_info)
void MainMenu(ProgSettings &paramotopy_settings, runinfo &paramotopy_info)
Definition: failed_paths.cpp:6
std::vector< std::string > foldervector
int totalfails
int failedpaths_case(runinfo &paramotopy_info, ProgSettings &paramotopy_settings, int &iteration)
void set_location_fail(runinfo &paramotopy_info)
std::map< int, std::vector< point > > terminal_fails
void PerformAnalysis(ProgSettings &paramotopy_settings, runinfo &paramotopy_info)
void make_master_from_recovered(std::map< int, point > successful_resolves)
std::string new_step_one(ProgSettings &paramotopy_settings, runinfo &paramotopy_info)
A class that stores the general program settings of Paramotopy.
std::vector< point > master_fails
A class for the input file parser.
Definition: runinfo.hpp:41
void write_failed_paths(runinfo paramotopy_info, int iteration)
int current_iteration