bundles / scipy 1.17.1 / scipy / spatial / _qhull / HalfspaceIntersection / add_halfspaces
cython_function_or_method
scipy.spatial._qhull:HalfspaceIntersection.add_halfspaces
Signature
def add_halfspaces ( halfspaces , restart = False ) Summary
Process a set of additional new halfspaces.
Parameters
halfspaces: ndarray of double, shape (n_new_ineq, ndim+1)New halfspaces to add. The dimensionality (ndim) should match that of the initial halfspaces. Like in the constructor, these are stacked inequalites of the form Ax + b <= 0 in format [A; b]. The original feasible point must also be feasible for these new inequalities.
restart: bool, optionalWhether to restart processing from scratch, rather than adding halfspaces incrementally.
Raises
: QhullErrorRaised when Qhull encounters an error condition, such as geometrical degeneracy when options to resolve are not enabled.
Notes
You need to specify incremental=True when constructing the object to be able to add halfspaces incrementally. Incremental addition of halfspaces is also not possible after close has been called.
See also
- close
Aliases
-
scipy.spatial.HalfspaceIntersection.add_halfspaces