14 #ifndef included_GreedyRandomSampler_h
15 #define included_GreedyRandomSampler_h
17 #include "GreedySampler.h"
62 int num_parameter_points,
64 double relative_error_tolerance,
68 int convergence_subset_size,
69 bool use_latin_hypercube,
70 std::string output_log_path =
"",
71 std::string warm_start_file_name =
"",
72 bool use_centroid =
true,
74 bool debug_algorithm =
false);
107 double param_space_min,
108 double param_space_max,
109 int num_parameter_points,
110 bool check_local_rom,
111 double relative_error_tolerance,
115 int convergence_subset_size,
116 bool use_latin_hypercube,
117 std::string output_log_path =
"",
118 std::string warm_start_file_name =
"",
119 bool use_centroid =
true,
121 bool debug_algorithm =
false);
132 std::string base_file_name,
133 std::string output_log_path =
"");
142 save(std::string base_file_name);
157 void load(std::string base_file_name);
void load(std::string base_file_name)
Load the object state from a file.
void save(std::string base_file_name)
Save the object state to a file.
GreedyRandomSampler(Vector param_space_min, Vector param_space_max, int num_parameter_points, bool check_local_rom, double relative_error_tolerance, double alpha, double max_clamp, int subset_size, int convergence_subset_size, bool use_latin_hypercube, std::string output_log_path="", std::string warm_start_file_name="", bool use_centroid=true, int random_seed=1, bool debug_algorithm=false)
Constructor.
~GreedyRandomSampler()
Destructor.
bool d_use_latin_hypercube
Use latin hypercube sampling instead of fixed uniform.
void getNextParameterPointAfterConvergenceFailure()
Get the next parameter point to sample after a convergence failure.
void constructParameterPoints()
Construct the list of parameter point candidates to sample.