#include <MatrixInterpolator.h>
Public Member Functions | |
MatrixInterpolator (std::vector< Vector * > parameter_points, std::vector< Matrix * > rotation_matrices, std::vector< Matrix * > reduced_matrices, int ref_point, std::string matrix_type, std::string rbf="G", double epsilon=1.0) | |
Constructor. More... | |
Matrix * | interpolate (Vector *point) |
Obtain the interpolated reduced matrix of the unsampled parameter point. More... | |
Additional Inherited Members | |
![]() | |
Interpolator (std::vector< Vector * > parameter_points, std::vector< Matrix * > rotation_matrices, int ref_point, std::string rbf, double epsilon=1.0) | |
Constructor. More... | |
std::vector< double > | obtainRBFToTrainingPoints (Vector *point) |
Compute the RBF from the parameter points with the unsampled parameter point. More... | |
double | obtainRBF (Vector *point1, Vector *point2) |
Compute the RBF between two points. More... | |
![]() | |
int | d_rank |
The rank of the process this object belongs to. | |
int | d_num_procs |
The number of processors being run on. | |
int | d_ref_point |
The index within the vector of parameter points to the reference point. | |
std::string | d_rbf |
The RBF type (gaussian, multiquadric, inverse quadratic, inverse multiquadric) | |
int | d_epsilon |
The RBF parameter that determines the width of influence. a small epsilon: larger influential width a large epsilon: smaller influential width. | |
std::vector< Vector * > | d_parameter_points |
The sampled parameter points. | |
std::vector< Matrix * > | d_rotation_matrices |
The reduced bases with compatible coordinates. | |
Matrix * | d_lambda_T |
The reduced elements in tangential space. | |
MatrixInterpolator interpolates reduced matrices of a set of parameter points and returns an interpolated reduced matrix for an unseen parameter point. The performance of this algorithm depends on the matrix sizes being small because of its computational complexity due to direct matrix inversion. The interpolation algorithm was adapted from "Gradient-based Constrained Optimization Using a Database of Linear Reduced-Order Models" by Y. Choi et al.
CAROM::MatrixInterpolator::MatrixInterpolator | ( | std::vector< Vector * > | parameter_points, |
std::vector< Matrix * > | rotation_matrices, | ||
std::vector< Matrix * > | reduced_matrices, | ||
int | ref_point, | ||
std::string | matrix_type, | ||
std::string | rbf = "G" , |
||
double | epsilon = 1.0 |
||
) |
Constructor.
[in] | parameter_points | The parameter points. |
[in] | rotation_matrices | The rotation matrices associated with each parameter point. |
[in] | reduced_matrices | The reduced matrices associated with each parameter point. |
[in] | ref_point | The index within the vector of parameter points to the reference point |
[in] | matrix_type | The type of matrix (R = real, B = basis [also a real matrix, but uses a unique rotation specific to bases (AQ)], NS = nonsingular, SPD = symmetric positive-definite) |
[in] | rbf | The RBF type ("G" == gaussian, "MQ" == multiquadric, "IQ" == inverse quadratic, "IMQ" == inverse multiquadric) |
[in] | epsilon | The RBF parameter that determines the width of influence. |
Obtain the interpolated reduced matrix of the unsampled parameter point.
[in] | point | The unsampled parameter point. |