cobyqa.framework.TrustRegion.get_index_to_remove#
- TrustRegion.get_index_to_remove(x_new=None)[source]#
Get the index of the interpolation point to remove.
If x_new is not provided, the index returned should be used during the geometry-improvement phase. Otherwise, the index returned is the best index for included x_new in the interpolation set.
- Parameters:
- x_new
numpy.ndarray, shape (n,), optional New point to be included in the interpolation set.
- x_new
- Returns:
- int
Index of the interpolation point to remove.
- float
Distance between
x_bestand the removed point.
- Raises:
numpy.linalg.LinAlgErrorIf the computation of a determinant fails.