libROM  v1.0
Data-driven physical simulation library
GreedyCustomSampler.h
1 
11 // Description: The concrete implementation of the Choi et. al's greedy algorithm
12 // using pre-defined parameter points.
13 
14 #ifndef included_GreedyCustomSampler_h
15 #define included_GreedyCustomSampler_h
16 
17 #include "GreedySampler.h"
18 
19 namespace CAROM {
20 
27 {
28 public:
54  std::vector<Vector> parameter_points,
55  bool check_local_rom,
56  double relative_error_tolerance,
57  double alpha,
58  double max_clamp,
59  int subset_size,
60  int convergence_subset_size,
61  std::string output_log_path = "",
62  std::string warm_start_file_name = "",
63  bool use_centroid = true,
64  int random_seed = 1,
65  bool debug_algorithm = false);
66 
92  std::vector<double> parameter_points,
93  bool check_local_rom,
94  double relative_error_tolerance,
95  double alpha,
96  double max_clamp,
97  int subset_size,
98  int convergence_subset_size,
99  std::string output_log_path = "",
100  std::string warm_start_file_name = "",
101  bool use_centroid = true,
102  int random_seed = 1,
103  bool debug_algorithm = false);
104 
114  std::string base_file_name,
115  std::string output_log_path = "");
116 
121 
122 protected:
123 
128 
133 };
134 
135 }
136 
137 #endif
GreedyCustomSampler(std::vector< Vector > parameter_points, bool check_local_rom, double relative_error_tolerance, double alpha, double max_clamp, int subset_size, int convergence_subset_size, std::string output_log_path="", std::string warm_start_file_name="", bool use_centroid=true, int random_seed=1, bool debug_algorithm=false)
Constructor.
void getNextParameterPointAfterConvergenceFailure()
Get the next parameter point to sample after a convergence failure.
void constructParameterPoints()
Construct the list of parameter point candidates to sample.