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_newnumpy.ndarray, shape (n,), optional

New point to be included in the interpolation set.

Returns:
int

Index of the interpolation point to remove.

float

Distance between x_best and the removed point.

Raises:
numpy.linalg.LinAlgError

If the computation of a determinant fails.