Paramotopy
parallel parameter homotopy through bertini
|
The class for performing failed path analysis. More...
#include <failed_paths.hpp>
Public Member Functions | |
void | MainMenu (ProgSettings ¶motopy_settings, runinfo ¶motopy_info) |
Public Attributes | |
int | num_points_inspected |
std::vector< point > | master_fails |
std::map< int, std::vector < point > > | initial_fails |
std::map< int, std::vector < point > > | terminal_fails |
int | totalfails |
std::vector< std::string > | foldervector |
int | current_iteration |
Private Member Functions | |
void | StartOver (runinfo ¶motopy_info) |
void | RecoverProgress (runinfo ¶motopy_info) |
this function does three things: recovers the iteration number, recovers the list of points which have path failures, and reports the paths to the user. More... | |
void | PerformAnalysis (ProgSettings ¶motopy_settings, runinfo ¶motopy_info) |
void | set_location_fail (runinfo ¶motopy_info) |
void | report_restored_data () |
int | find_failed_paths (runinfo paramotopy_info, int temporal_flag, int iteration) |
void | get_folders_for_fail (boost::filesystem::path dir) |
std::string | new_step_one (ProgSettings ¶motopy_settings, runinfo ¶motopy_info) |
void | make_master_from_recovered (std::map< int, point > successful_resolves) |
void | write_failed_paths (runinfo paramotopy_info, int iteration) |
void | find_successful_resolves (runinfo ¶motopy_info) |
void | write_successful_resolves (runinfo paramotopy_info) |
void | merge_successful_resolves (std::vector< point > current_successful_resolves, std::vector< int > relative_indices, std::vector< int > final_indices) |
void | copy_step_one (boost::filesystem::path from_dir, boost::filesystem::path to_dir, int iteration, std::string startfilename) |
void | report_failed_paths (runinfo paramotopy_info) |
The class for performing failed path analysis.
A class for the failed path analysis. Instantiated in failedpath_case() called from the main menu.
Definition at line 45 of file failed_paths.hpp.
|
private |
Copy the step 1 file.
from_dir | - The directory from which to copy the step1 file. |
to_dir | - The directory to copy the step1 file. |
iteration | - The current iteration number in the attempt to resolve path failures. |
startfilename | - The file to copy. |
Definition at line 613 of file failed_paths.cpp.
Referenced by PerformAnalysis().
|
private |
Parses a series of failed_paths files, searching for points which had such paths.
paramotopy_info | - The current run info. |
temporal_flag | - |
Definition at line 783 of file failed_paths.cpp.
References runinfo::base_dir, foldervector, get_folders_for_fail(), point::index, initial_fails, runinfo::location, master_fails, num_points_inspected, runinfo::numparam, runinfo::numvariables, point::parameter_values, ParseFailedPaths(), terminal_fails, and totalfails.
Referenced by MainMenu(), PerformAnalysis(), RecoverProgress(), and StartOver().
|
private |
Definition at line 471 of file failed_paths.cpp.
References current_iteration, datagatherer::GatherDataForFails(), initial_fails, runinfo::location, merge_successful_resolves(), runinfo::numvariables, and terminal_fails.
Referenced by PerformAnalysis().
|
private |
Set the vector of failed folders.
dir | - The directory where the failed paths could exist in some subdirectory. |
Definition at line 928 of file failed_paths.cpp.
References foldervector.
Referenced by find_failed_paths().
void failinfo::MainMenu | ( | ProgSettings & | paramotopy_settings, |
runinfo & | paramotopy_info | ||
) |
Display the main menu of the failed paths analysis.
paramotopy_settings | - The current program preference settings. |
paramotopy_info | - The current run information. |
Definition at line 6 of file failed_paths.cpp.
References runinfo::base_dir, current_iteration, ProgSettings::DisplayCurrentSettings(), find_failed_paths(), get_int_choice(), runinfo::GetPrevRandom(), initial_fails, runinfo::inputfilename, master_fails, ProgSettings::PathFailureMenu(), PerformAnalysis(), RecoverProgress(), report_failed_paths(), ProgSettings::set_path_failure_settings(), StartOver(), terminal_fails, runinfo::test_if_finished(), totalfails, and runinfo::UpdateAndSave().
Referenced by main().
|
private |
Not quite sure what this function does . . . Print the successful resolves and sort the fails and save them to the master_fails
successful_resolves | - a map of the successful resolves. The int is the parameter number and the point is the parameter point. |
Definition at line 245 of file failed_paths.cpp.
References master_fails.
Referenced by RecoverProgress().
|
private |
Merge the successful of resolved failed paths with the rest of the parameter points that have been successful.
current_successful_resolves | - The current parameter points that had failed paths and are now resolved. |
relative_indices | - The relative indices (corresponding to the parameter point) of the points in current_successful_resolves. |
final_indices | - The final indices of the points in current_successful_resolves. |
Definition at line 513 of file failed_paths.cpp.
References master_fails.
Referenced by find_successful_resolves().
|
private |
Write a new step1 file with different random points to run to the failed paths in the step 2 process.
paramotopy_settings | - The paramotopy user defined settings. |
paramotopy_info | - The current run info. |
Definition at line 652 of file failed_paths.cpp.
References runinfo::base_dir, CallBertiniStep1(), GetStart(), runinfo::location, runinfo::MakeRandomValues(), runinfo::RandomValues, ProgSettings::settings, ProgSettings::setValue(), and WriteFailStep2().
Referenced by PerformAnalysis().
|
private |
Run an analysis on the failed paths.
paramotopy_settings | - The paramotopy preference settings. |
paramotopy_info | - The current run info. |
Definition at line 292 of file failed_paths.cpp.
References runinfo::base_dir, copy_step_one(), current_iteration, find_failed_paths(), find_successful_resolves(), GetMcNumLines(), runinfo::GetPrevRandom(), initial_fails, runinfo::location, new_step_one(), num_points_inspected, runinfo::numparam, set_location_fail(), ProgSettings::settings, ProgSettings::setValue(), steptwo_case(), terminal_fails, TestIfFinished(), ProgSettings::tightentolerances(), totalfails, write_failed_paths(), write_successful_resolves(), and runinfo::WriteModifiedParamotopy().
Referenced by MainMenu().
|
private |
this function does three things: recovers the iteration number, recovers the list of points which have path failures, and reports the paths to the user.
Get the iteration number, recovers a list of points which have path failures, and reports the paths to the user.
paramotopy_info | The current run information. |
Definition at line 132 of file failed_paths.cpp.
References runinfo::base_dir, current_iteration, find_failed_paths(), FindDirectories(), runinfo::fundamental_dir, initial_fails, runinfo::location, make_master_from_recovered(), runinfo::numvariables, datagatherer::ReadSuccessfulResolves(), set_location_fail(), terminal_fails, TestIfFinished(), and write_successful_resolves().
Referenced by MainMenu().
|
private |
Report the failed paths to the user.
paramotopy_info | - The current paramotopy run info. |
Definition at line 529 of file failed_paths.cpp.
References current_iteration, initial_fails, num_points_inspected, runinfo::numparam, and runinfo::ParameterNames.
Referenced by MainMenu().
|
private |
Report to the user the initial fails and the terminal fails.
Definition at line 216 of file failed_paths.cpp.
References initial_fails, master_fails, and terminal_fails.
|
private |
set the directory of the failed paths and the current pass.
paramotopy_info | - The current run information. |
Definition at line 269 of file failed_paths.cpp.
References runinfo::base_dir, current_iteration, and runinfo::location.
Referenced by PerformAnalysis(), RecoverProgress(), and StartOver().
|
private |
Clear Data and rerun failed paths.
paramotopy_info | - The current run information. |
Definition at line 90 of file failed_paths.cpp.
References runinfo::base_dir, current_iteration, find_failed_paths(), FindDirectories(), runinfo::GetPrevRandom(), initial_fails, runinfo::location, master_fails, set_location_fail(), terminal_fails, and write_successful_resolves().
Referenced by MainMenu().
|
private |
Write the failed paths
paramotopy_info | - The current run information. |
iteration | - The current iteration for path failure resolution. |
Definition at line 733 of file failed_paths.cpp.
References current_iteration, initial_fails, runinfo::location, runinfo::numparam, and totalfails.
Referenced by PerformAnalysis().
|
private |
Definition at line 424 of file failed_paths.cpp.
References runinfo::base_dir, and master_fails.
Referenced by PerformAnalysis(), RecoverProgress(), and StartOver().
int failinfo::current_iteration |
Definition at line 60 of file failed_paths.hpp.
Referenced by find_successful_resolves(), MainMenu(), PerformAnalysis(), RecoverProgress(), report_failed_paths(), set_location_fail(), StartOver(), and write_failed_paths().
std::vector< std::string > failinfo::foldervector |
Definition at line 59 of file failed_paths.hpp.
Referenced by find_failed_paths(), and get_folders_for_fail().
std::map< int, std::vector < point > > failinfo::initial_fails |
The parameter points that had initial files.
Definition at line 54 of file failed_paths.hpp.
Referenced by find_failed_paths(), find_successful_resolves(), MainMenu(), PerformAnalysis(), RecoverProgress(), report_failed_paths(), report_restored_data(), StartOver(), and write_failed_paths().
std::vector< point > failinfo::master_fails |
The parameter points that had failed paths.
Definition at line 52 of file failed_paths.hpp.
Referenced by find_failed_paths(), MainMenu(), make_master_from_recovered(), merge_successful_resolves(), report_restored_data(), StartOver(), and write_successful_resolves().
int failinfo::num_points_inspected |
The number of points to test if there was a failed path.
Definition at line 50 of file failed_paths.hpp.
Referenced by find_failed_paths(), PerformAnalysis(), and report_failed_paths().
std::map< int, std::vector < point > > failinfo::terminal_fails |
The parameter points that keep on failing.
Definition at line 56 of file failed_paths.hpp.
Referenced by find_failed_paths(), find_successful_resolves(), MainMenu(), PerformAnalysis(), RecoverProgress(), report_restored_data(), and StartOver().
int failinfo::totalfails |
Definition at line 58 of file failed_paths.hpp.
Referenced by find_failed_paths(), MainMenu(), PerformAnalysis(), and write_failed_paths().