Paramotopy
parallel parameter homotopy through bertini
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
failinfo Class Reference

The class for performing failed path analysis. More...

#include <failed_paths.hpp>

Collaboration diagram for failinfo:
[legend]

Public Member Functions

void MainMenu (ProgSettings &paramotopy_settings, runinfo &paramotopy_info)
 

Public Attributes

int num_points_inspected
 
std::vector< pointmaster_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 &paramotopy_info)
 
void RecoverProgress (runinfo &paramotopy_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 &paramotopy_settings, runinfo &paramotopy_info)
 
void set_location_fail (runinfo &paramotopy_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 &paramotopy_settings, runinfo &paramotopy_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 &paramotopy_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)
 

Detailed Description

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.

Member Function Documentation

void failinfo::copy_step_one ( boost::filesystem::path  from_dir,
boost::filesystem::path  to_dir,
int  iteration,
std::string  startfilename 
)
private

Copy the step 1 file.

Parameters
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().

Here is the caller graph for this function:

int failinfo::find_failed_paths ( runinfo  paramotopy_info,
int  temporal_flag,
int  iteration 
)
private

Parses a series of failed_paths files, searching for points which had such paths.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::find_successful_resolves ( runinfo paramotopy_info)
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::get_folders_for_fail ( boost::filesystem::path  dir)
private

Set the vector of failed folders.

Parameters
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().

Here is the caller graph for this function:

void failinfo::MainMenu ( ProgSettings paramotopy_settings,
runinfo paramotopy_info 
)

Display the main menu of the failed paths analysis.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::make_master_from_recovered ( std::map< int, point successful_resolves)
private

Not quite sure what this function does . . . Print the successful resolves and sort the fails and save them to the master_fails

Parameters
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().

Here is the caller graph for this function:

void failinfo::merge_successful_resolves ( std::vector< point current_successful_resolves,
std::vector< int >  relative_indices,
std::vector< int >  final_indices 
)
private

Merge the successful of resolved failed paths with the rest of the parameter points that have been successful.

Parameters
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().

Here is the caller graph for this function:

std::string failinfo::new_step_one ( ProgSettings paramotopy_settings,
runinfo paramotopy_info 
)
private

Write a new step1 file with different random points to run to the failed paths in the step 2 process.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::PerformAnalysis ( ProgSettings paramotopy_settings,
runinfo paramotopy_info 
)
private

Run an analysis on the failed paths.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::RecoverProgress ( runinfo paramotopy_info)
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.

Parameters
paramotopy_infoThe 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::report_failed_paths ( runinfo  paramotopy_info)
private

Report the failed paths to the user.

Parameters
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().

Here is the caller graph for this function:

void failinfo::report_restored_data ( )
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.

void failinfo::set_location_fail ( runinfo paramotopy_info)
private

set the directory of the failed paths and the current pass.

Parameters
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().

Here is the caller graph for this function:

void failinfo::StartOver ( runinfo paramotopy_info)
private

Clear Data and rerun failed paths.

Parameters
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void failinfo::write_failed_paths ( runinfo  paramotopy_info,
int  iteration 
)
private

Write the failed paths

Parameters
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().

Here is the caller graph for this function:

void failinfo::write_successful_resolves ( runinfo  paramotopy_info)
private

Definition at line 424 of file failed_paths.cpp.

References runinfo::base_dir, and master_fails.

Referenced by PerformAnalysis(), RecoverProgress(), and StartOver().

Here is the caller graph for this function:

Member Data Documentation

int failinfo::current_iteration
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
std::vector< point > failinfo::master_fails
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().


The documentation for this class was generated from the following files: