14 #include "GreedyCustomSampler.h"
23 std::vector<double> parameter_points,
25 double relative_error_tolerance,
29 int convergence_subset_size,
30 std::string output_log_path,
31 std::string warm_start_file_name,
34 bool debug_algorithm) :
38 relative_error_tolerance,
42 convergence_subset_size,
54 if (warm_start_file_name !=
"")
61 std::vector<Vector> parameter_points,
63 double relative_error_tolerance,
67 int convergence_subset_size,
68 std::string output_log_path,
69 std::string warm_start_file_name,
72 bool debug_algorithm) :
76 relative_error_tolerance,
80 convergence_subset_size,
92 if (warm_start_file_name !=
"")
99 std::string base_file_name,
100 std::string output_log_path) :
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.
~GreedyCustomSampler()
Destructor.
void constructParameterPoints()
Construct the list of parameter point candidates to sample.
void printSamplingType(std::string sampling_type)
Print the sampling type.
std::vector< Vector > d_convergence_points
The convergence parameter points to explore.
std::vector< Vector > d_parameter_points
The parameter points to explore.
void initializeParameterPoints()
Initialize the list of parameter point candidates to sample.
int d_counter
An internal counter.
int d_next_point_to_sample
The next parameter point to sample.
Vector d_max_param_point
The maximum value of the parameter space.
Vector d_min_param_point
The minimum value of the parameter space.
void addDatabaseFromFile(std::string const &warm_start_file_name)
Do a warm start by adding the sampled parameters from the database in a file to the current database.
void checkParameterPointInput()
Construct the list of parameter point candidates to sample.
int getNearestNonSampledPoint(Vector point)
Returns the index of the nearest non-sampled parameter point to the given point.
const double & item(int i) const
Const Vector member access.