本文簡要介紹 python 語言中 scipy.optimize.LinearConstraint.residual
的用法。
用法:
LinearConstraint.residual(x)#
計算約束函數和限製之間的殘差
對於形式的線性約束:
lb <= A@x <= ub
A@x
和極限之間的上下殘差是值sl
和sb
使得:lb + sl == A@x == ub - sb
當
sl
和sb
的所有元素都為正時,約束的所有元素都滿足;sl
或sb
中的負元素表示不滿足約束的對應元素。- x: array_like:
自變量向量
- sl, sb: 類數組
下殘差和上殘差
參數 ::
返回 ::
相關用法
- Python SciPy LSQUnivariateSpline.antiderivative用法及代碼示例
- Python SciPy LSQBivariateSpline.__call__用法及代碼示例
- Python SciPy LSQBivariateSpline.ev用法及代碼示例
- Python SciPy LSQUnivariateSpline.integral用法及代碼示例
- Python SciPy LSQUnivariateSpline.derivatives用法及代碼示例
- Python SciPy LSQUnivariateSpline.get_residual用法及代碼示例
- Python SciPy LowLevelCallable用法及代碼示例
- Python SciPy LSQUnivariateSpline.derivative用法及代碼示例
- Python SciPy LSQUnivariateSpline.roots用法及代碼示例
- Python SciPy LSQSphereBivariateSpline.__call__用法及代碼示例
- Python SciPy LSQSphereBivariateSpline.ev用法及代碼示例
- Python SciPy interpolate.make_interp_spline用法及代碼示例
- Python SciPy stats.anderson用法及代碼示例
- Python SciPy ClusterNode.pre_order用法及代碼示例
- Python SciPy stats.iqr用法及代碼示例
- Python SciPy FortranFile.read_record用法及代碼示例
- Python SciPy ndimage.correlate用法及代碼示例
- Python SciPy special.exp1用法及代碼示例
- Python SciPy special.expn用法及代碼示例
- Python SciPy signal.czt_points用法及代碼示例
- Python SciPy interpolate.krogh_interpolate用法及代碼示例
- Python SciPy ndimage.morphological_gradient用法及代碼示例
- Python SciPy distance.sokalmichener用法及代碼示例
- Python SciPy linalg.eigvalsh_tridiagonal用法及代碼示例
- Python SciPy linalg.cdf2rdf用法及代碼示例
注:本文由純淨天空篩選整理自scipy.org大神的英文原創作品 scipy.optimize.LinearConstraint.residual。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。